Youtube v3 API Python Transition to live -


i trying transition broadcast event testing , live using youtube live api v3 python 2.7.3. used example code in youtube documentation web create broadcast, streaming , bind them need transition , there no example of in documentation. trying using code:

def bind_transition(youtube, broadcast_id):         transition_state_response = youtube.livebroadcasts().transition(         part="status",         id=broadcast_id,         broadcaststatus="testing"         ).execute() 

please can correct code or give me example this.

i had not written main..., defined function not using it, adding code solved problem:

        try:           bind_transition(youtube, broadcast_id)         except httperror, e:           print "an http error %d occurred:\n%s" % (e.resp.status, e.content) 

Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

python - build a suggestions list using fuzzywuzzy -