Skip to content

Commit 5efe1c4

Browse files
committed
update README
1 parent 328204f commit 5efe1c4

File tree

1 file changed

+19
-8
lines changed

1 file changed

+19
-8
lines changed

README.md

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,17 @@
33
A Python module for the [Zencoder](http://zencoder.com) API
44

55
## 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+
```
1014

1115
## 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.
1617

1718
## Usage
1819

@@ -47,6 +48,16 @@ Install `httplib2` with `pip` or `easy_install`.
4748
another_job = zen.job.create(input_url, outputs=outputs)
4849

4950

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+
```
5061

5162
**Note:** If you set the `ZENCODER_API_KEY` environment variable to your api key, you don't have to provide it when initializing Zencoder.
5263

0 commit comments

Comments
 (0)