Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 310a5b9

Browse filesBrowse files
committed
HTTPBackend has a base_url and http object
1 parent 43a94a4 commit 310a5b9
Copy full SHA for 310a5b9

File tree

Expand file treeCollapse file tree

1 file changed

+7
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+7
-1
lines changed

‎zencoder/zencoder.py

Copy file name to clipboardExpand all lines: zencoder/zencoder.py
+7-1Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,13 @@ class HTTPBackend(object):
1313
"""
1414
Abstracts out an HTTP backend, but defaults to httplib2
1515
"""
16-
pass
16+
def __init__(self):
17+
"""
18+
Creates an HTTPBackend object, which abstracts out some of the
19+
library specific HTTP stuff.
20+
"""
21+
self.base_url = 'https://app.zencoder.com/api/'
22+
self.http = httplib2.Http()
1723

1824
class Zencoder(object):
1925
""" This is the entry point to the Zencoder API """

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.