Friday, January 20, 2012

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

Hello,

You'd normally have to iterate through the items in the feed for the
specific playlist and stop once you find the item you're interested in
(i.e. the one whose video id matches the video id that you're looking
for). Then you'd take a look at the id of that playlist entry.

The only sample code I have illustrating this is in Java:

http://code.google.com/p/youtube-direct/source/browse/trunk/ytd/src/com/google/ytd/youtube/YouTubeApiHelper.java#408

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


On Jan 20, 1:06 pm, Martti Laine <marttilain...@gmail.com> wrote:
> Hey, thanks for your reply.
>
> How do I exactly figure out the ID? Seems like PlaylistVideoEntry doesn't
> have a method for it. Not that I'd be able to construct one anyway (as I'm
> not able to get a PlaylistListEntry by ID) =)

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