ios - Are tags supported in YouTube API? -
i'm working on ios app let start live youtube broadcast. add tags broadcast.
looking @ page on api documentation, noticed possible set value snippet.tags[]
property, seems need. when @ gtlyoutubelivebroadcastsnippet.h
, however; see following properties:
@interface gtlyoutubelivebroadcastsnippet : gtlobject @property (retain) gtldatetime *actualendtime; @property (retain) gtldatetime *actualstarttime; @property (copy) nsstring *channelid; @property (retain) gtldatetime *publishedat; @property (retain) gtldatetime *scheduledendtime; @property (retain) gtldatetime *scheduledstarttime; @property (retain) gtlyoutubethumbnaildetails *thumbnails; @property (copy) nsstring *title;
but don't see regarding tags. google folks--is possible create live stream , add tags?? thank you!
the api documentation you're referring pertains regular youtube videos; youtube live broadcasts have different data model far api concerned. unfortunately, tags field not exposed reading or writing live broadcasts directly.
there way around this, however. once you've created livebroadcast object, take videoid that's returned , use in regular data api calls ... specifically, you'll want use videos/update endpoint , add in snippet.tags data there (note that, valid update call, you'll required once again set snippet.title , snippet.categoryid).
i've verified works via api explorer, seems best way tags onto live events api.
Comments
Post a Comment