zencoder-py
zencoder-py copied to clipboard
post callback
Hey guys - Am I able to set the HTTP post callback for a job?
https://app.zencoder.com/docs/guides/getting-started/notifications
Thanks.
Also curious about this.
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!