Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commitbeaa726

Browse files
committed
add usage documentation
1 parent6774f5e commitbeaa726

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

‎README.md

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,20 @@ or with pip:
99
pip install zencoder
1010

1111
##Dependencies
12-
zencoder-py depends on[httplib2](http://code.google.com/p/httplib2/)
13-
it uses the json module, which is only in 2.6 python or greater
14-
and will depend on some package for xml
12+
zencoder-py depends on[httplib2](http://code.google.com/p/httplib2/), and uses the json module and will depend on some package for xml when I get around to supporting it.
1513

16-
it uses the json module, which is only in 2.6 pythonorgreater
14+
Install httplib2 with piporeasy_install.
1715

18-
and will depend on some package for xml
16+
##Usage
17+
18+
from zencoder import Zencoder
19+
zen = Zencoder('abc123')
20+
21+
# creates an encoding job with the defaults
22+
response = zen.job.create('http://input-file/movie.avi')
23+
print response.code
24+
print response.body
25+
print response.body['id']
26+
27+
**Note:** If you set the**ZENCODER\_API\_KEY** environment variable to your api key, you don't have to provide it when initializing Zencoder.
1928

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp