zencoder-py icon indicating copy to clipboard operation
zencoder-py copied to clipboard

post callback

Open elondon opened this issue 9 years ago • 2 comments

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

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

Thanks.

elondon avatar Mar 14 '15 16:03 elondon

Also curious about this.

joeweiss avatar Jun 01 '15 12:06 joeweiss

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!

schworer avatar Jun 01 '15 13:06 schworer