Friday, January 20, 2012

[YouTube-API] Re: Editing the order of a playlist entry says "InvalidRequestURI"

Hello,

Playlist entries have their own unique id that is distinct from the
video id. (Think about it: the same video could be in a playlist
multiple times, so the video id wouldn't be enough to uniquely
identify an entry.) You need to know the playlist entry id ahead of
time and use it in combination with the playlist id when constructing
the URL to PUT to.

Cheers,
-Jeff Posnick, YouTube API Team
groups.google.com/group/youtube-api-gdata | apiblog.youtube.com |
@YouTubeDev


On Jan 20, 2:45 am, Martti Laine <marttilain...@gmail.com> wrote:
> Hey guys
>
> I'm trying to edit the position of a video in a playlist with this code:
>
> $yt->post('<?xml version="1.0" encoding="UTF-8"?><entry
> xmlns="http://www.w3.org/2005/Atom"
> xmlns:yt="http://gdata.youtube.com/schemas/2007"><yt:position>'.$i.
> '</yt:position></entry>','http://gdata.youtube.com/feeds/api/playlists/'.
> $input['id'].'/'.$video_id.'?v=2');
>
> However, it doesn't seem to work. API returns error "InvalidRequestURI".
> I've tried with and without https.
>
> Any help is appreciated.

--
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