Thanks for your response. I was able to successfully set the archived
flag in a POST (not patch) request to the live event URL (/live/
events). I was missing the <content> parent element of the child entry
(live video entry?). Here was the body of my request:
<?xml version='1.0' encoding='UTF-8'?>
<entry xmlns='http://www.w3.org/2005/Atom'
xmlns:media='http://search.yahoo.com/mrss/'
xmlns:yt='http://gdata.youtube.com/schemas/2007'>
<title>Test</title>
<summary>Test Summary</summary>
<yt:when start="{insert time here}">
<content type='application/atom+xml'>
<entry>
<yt:archived>false</yt:archived>
<yt:cdn name='primary'>
<media:content yt:format='18'/>
</yt:cdn>
</entry>
</content>
</entry>
I was also able to set this through PUT requests. Please note that if
you want to set this through a PUT, you will be required to specify
<yt:cdn> infomration for it to be valid. This was NOT required for the
POST request (create). For more information on the yt:format values
(240p, 360p, 480p), check out this link.
http://code.google.com/apis/youtube/2.0/reference.html#youtube_data_api_tag_media:content
I hope this helps someone else!
Daniel
PS. I did no testing on PATCH requests.
On Jan 13, 5:34 pm, Jeffrey Posnick <je...@google.com> wrote:
> Hello Daniel,
>
> Are you setting the <yt:archived>false</yt:archived> element as a
> child of a live video or live event entry? My understanding is that it
> need to be a property of the live video entry, not the live event
> entry.
>
> Cheers,
> -Jeff Posnick, YouTube API Team
> groups.google.com/group/youtube-api-gdata | apiblog.youtube.com |
> @YouTubeDev
>
> On Jan 11, 9:56 pm, Daniel <daniel.r.g...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Hello everyone,
>
> > I was wondering if anyone has had success turning off archiving for
> > Live Events using the Live API. I've tried adding "<yt:archived>false</
> > yt:archived>" in POST, PUT and PATCH requests with failure. It was
> > listed as a child of entry in the documentation but I have no had zero
> > success.
>
> > Thanks for your time,
>
> > Daniel
--
You received this message because you are subscribed to the Google Groups "YouTube APIs Developer Forum" group.
To post to this group, send email to youtube-api-gdata@googlegroups.com.
To unsubscribe from this group, send email to youtube-api-gdata+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/youtube-api-gdata?hl=en.
No comments:
Post a Comment