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 9a17e8a

Browse filesBrowse files
committed
update README
1 parent 328204f commit 9a17e8a
Copy full SHA for 9a17e8a

File tree

1 file changed

+22
-8
lines changed
Filter options

1 file changed

+22
-8
lines changed

‎README.md

Copy file name to clipboardExpand all lines: README.md
+22-8Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,20 @@
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`:
107

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

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.
1620

1721
## Usage
1822

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

4953

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

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

0 commit comments

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