|
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`: |
| 7 | +``` |
| 8 | +easy_install zencoder |
| 9 | +``` |
| 10 | +or with`pip`: |
| 11 | +``` |
| 12 | +pip install zencoder |
| 13 | +``` |
10 | 14 |
|
11 | 15 | ##Dependencies
|
12 |
| -`zencoder-py` depends on[httplib2](http://code.google.com/p/httplib2/), and uses the`json` module. |
13 |
| - |
14 |
| -Install`httplib2` with`pip` or`easy_install`. |
15 |
| - pip install httplib2 |
| 16 | +`zencoder-py` depends on[httplib2](http://code.google.com/p/httplib2/), and uses the`json` or`simplejson` module. |
16 | 17 |
|
17 | 18 | ##Usage
|
18 | 19 |
|
@@ -47,6 +48,16 @@ Install `httplib2` with `pip` or `easy_install`.
|
47 | 48 | another_job = zen.job.create(input_url, outputs=outputs)
|
48 | 49 |
|
49 | 50 |
|
| 51 | +##Specifying the API Version |
| 52 | +Set the version of the Zencoder API you want to use as the`api_version` keyword to the`Zencoder` object (defaults to`v2`): |
| 53 | + |
| 54 | +```python |
| 55 | +# set to version 1: https://app.zencoder.com/api/v1/ |
| 56 | +zen= Zencoder(api_version='v1') |
| 57 | + |
| 58 | +# set to the edge version: https://app.zencoder.com/api/ |
| 59 | +zen= Zencoder(api_version='edge') |
| 60 | +``` |
50 | 61 |
|
51 | 62 | **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 | 63 |
|
|