File tree Expand file tree Collapse file tree 1 file changed +22
-8
lines changed Expand file tree Collapse file tree 1 file changed +22
-8
lines changed Original file line number Diff line number Diff line change 3
3
A Python module for the [ Zencoder] ( http://zencoder.com ) API
4
4
5
5
## Installation
6
- Install from PyPI using easy_install:
7
- easy_install zencoder
8
- or with pip:
9
- pip install zencoder
6
+ Install from PyPI using ` easy_install ` :
10
7
11
- ## Dependencies
12
- ` zencoder-py ` depends on [ httplib2] ( http://code.google.com/p/httplib2/ ) , and uses the ` json ` module.
8
+ ```
9
+ easy_install zencoder
10
+ ```
11
+
12
+ or with ` pip ` :
13
+
14
+ ```
15
+ pip install zencoder
16
+ ```
13
17
14
- Install ` httplib2 ` with ` pip ` or ` easy_install ` .
15
- pip install httplib2
18
+ ## Dependencies
19
+ ` zencoder-py ` depends on [ httplib2 ] ( http://code.google.com/p/httplib2/ ) , and uses the ` json ` or ` simplejson ` module.
16
20
17
21
## Usage
18
22
@@ -47,6 +51,16 @@ Install `httplib2` with `pip` or `easy_install`.
47
51
another_job = zen.job.create(input_url, outputs=outputs)
48
52
49
53
54
+ ## Specifying the API Version
55
+ Set the version of the Zencoder API you want to use as the ` api_version ` keyword to the ` Zencoder ` object (defaults to ` v2 ` ):
56
+
57
+ ``` python
58
+ # set to version 1: https://app.zencoder.com/api/v1/
59
+ zen = Zencoder(api_version = ' v1' )
60
+
61
+ # set to the edge version: https://app.zencoder.com/api/
62
+ zen = Zencoder(api_version = ' edge' )
63
+ ```
50
64
51
65
** Note:** If you set the ` ZENCODER_API_KEY ` environment variable to your api key, you don't have to provide it when initializing Zencoder.
52
66
You can’t perform that action at this time.
0 commit comments