Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

post callback #28

Open
elondon opened this issue Mar 14, 2015 · 2 comments
Open

post callback #28

elondon opened this issue Mar 14, 2015 · 2 comments

Comments

@elondon
Copy link

elondon commented Mar 14, 2015

Hey guys - Am I able to set the HTTP post callback for a job?

https://app.zencoder.com/docs/guides/getting-started/notifications

Thanks.

@joeweiss
Copy link

joeweiss commented Jun 1, 2015

Also curious about this.

@schworer
Copy link
Contributor

schworer commented Jun 1, 2015

Apologies for the delay in responding to this, but you can use the options dict when calling Job.create to pass in additional options for job-level notifications. Here's an example of that:

import zencoder
client = zencoder.Zencoder(ZENCODER_API_KEY)
client.job.create("s3://zencodertesting/test.mov",
                  options={"notifications": ["http://zencoderfetcher"]})

Additionally, you can pass in per-output notificatoins by setting notifications on outputs:

client.job.create("s3://zencodertesting/test.mov",
                  outputs=[{"notifications": ["http://zencoderfetcher"], "label": "my_output"}])

Hope this helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants