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 b422a7a

Browse filesBrowse files
author
Alex Schworer
committed
remove old junk
1 parent 2d21b57 commit b422a7a
Copy full SHA for b422a7a

File tree

1 file changed

+0
-49
lines changed
Filter options

1 file changed

+0
-49
lines changed

‎README.md

Copy file name to clipboardExpand all lines: README.md
-49Lines changed: 0 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -17,55 +17,6 @@ Import zencoder
1717
```python
1818
from zencoder import Zencoder
1919
```
20-
=======
21-
### Create an instance of `Zencoder`
22-
23-
from zencoder import Zencoder
24-
zen = Zencoder('abc123') # enter your api key
25-
26-
### Submit a job
27-
28-
# creates an encoding job with the defaults
29-
job = zen.job.create('http://input-file/movie.avi')
30-
print job.code
31-
print job.body
32-
print job.body['id']
33-
34-
### Return output progress
35-
36-
# get the transcode progress of the first output
37-
progress = zen.output.progress(job.body['outputs'][0]['id'])
38-
print progress.body
39-
40-
### Create a new job with multiple outputs
41-
42-
# configure your outputs with dictionaries
43-
iphone = {
44-
'label': 'iPhone',
45-
'url': 's3://output-bucket/output-file-1.mp4',
46-
'width': 480,
47-
'height': 320
48-
}
49-
web = {
50-
'label': 'web',
51-
'url': 's3://output-bucket/output-file.vp8',
52-
'video_codec':, 'vp8'
53-
}
54-
55-
# the outputs kwarg requires an iterable
56-
outputs = (iphone, web)
57-
another_job = zen.job.create(input_url, outputs=outputs)
58-
59-
### ZENCODER_API_KEY Environment Variable
60-
61-
```python
62-
import os
63-
os.environ['ZENCODER_API_KEY'] = 'abcd1234'
64-
zen = Zencoder()
65-
```
66-
67-
If you set `ZENCODER_API_KEY` to your API Key, you don't have to provide it when initializing Zencoder.
68-
>>>>>>> a1728bd03ce089174715cf2e83ea6ead7e13a405
6920

7021
Create an instance of the Zencoder client. This will accept an API key and version. If not API key is set, it will look for a `ZENCODER_API_KEY` environment variable. API version defaults to 'v2'.
7122

0 commit comments

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