Great! In case anyone else wants to do the same thing at some point
in the future, would you mind sharing the XML you ended up using? Like
I said, I don't have an example that I wrote myself to share.
Cheers,
-Jeff Posnick, YouTube API Team
groups.google.com/group/youtube-api-gdata | apiblog.youtube.com |
@YouTubeDev
On Feb 26, 9:51 am, Ahmer Munawar <isolatedper...@googlemail.com>
wrote:
> Thanks a lot Jeff, it was difficult earlier but i did it with your
> help.
>
> On Feb 25, 2:03 am, Jeffrey Posnick <je...@google.com> wrote:
>
>
>
>
>
>
>
> > Hello Ahmer,
>
> > I haven't written code to do this in the past, but in general you
> > need to make sure that you're POSTing your request to the correct URL.
> > In the case of the users feed, as per the <link rel='http://
> > schemas.google.com/g/2005#batch'...> element in
>
> > http://gdata.youtube.com/feeds/api/users?v=2&prettyprint=true
>
> > the correct URL to POST to is
>
> > http://gdata.youtube.com/feeds/api/users/batch?v=2
>
> > I can't guarantee that the data in your <entry> tags are correct,
> > unfortunately. You might need to employ some trial and error here.
>
> > Cheers,
> > -Jeff Posnick, YouTube API Team
> > groups.google.com/group/youtube-api-gdata | apiblog.youtube.com |
> > @YouTubeDev
>
> > On Feb 22, 9:04 am, Ahmer Munawar <isolatedper...@googlemail.com>
> > wrote:
>
> > > Hi Jeff
>
> > > Thanks for your reply, so there is a way to get 50 user profiles in a
> > > single request.
>
> > > I tried doing everything to make batch request work but i failed, so i
> > > hope that you could prove me a sample code or something that could
> > > work for me:
>
> > > I have following request, i want user profiles of first 3 entries, how
> > > i make a batch request?http://gdata.youtube.com/feeds/api/users/Google/subscriptions
>
> > > I tried this by making an http post request, but it didnt work
> > > url =http://gdata.youtube.com/feeds/api/users/Google/subscriptions/batch
>
> > > <feed xmlns='http://www.w3.org/2005/Atom'
> > > xmlns:media='http://search.yahoo.com/mrss/'
> > > xmlns:batch='http://schemas.google.com/gdata/batch'
> > > xmlns:yt='http://gdata.youtube.com/schemas/2007'>
> > > <batch:operation type='query'/>
> > > <entry>
> > > <id>tag:youtube.com,
> > > 2008:user:Google:subscription:X7RMFNKroIVT2j3zlJcZK7MlFRH4BgyN4c2VbV-3XL4</
> > > id>
> > > </entry>
> > > <entry>
> > > <id>tag:youtube.com,
> > > 2008:user:Google:subscription:X7RMFNKroIVT2j3zlJcZK4YW__Hj8daKAdWFcCHyMjQ</
> > > id>
> > > </entry>
> > > <entry>
> > > <id>tag:youtube.com,
> > > 2008:user:Google:subscription:X7RMFNKroIVT2j3zlJcZKzB1OKJ55RvQuuaYZaLdc84</
> > > id>
> > > </entry>
> > > </feed>
>
> > > Please help
> > > Thanks once again
>
> > > Data API Protocol
> > > On Feb 22, 3:10 am, Jeffrey Posnick <je...@google.com> wrote:
>
> > > > Hello Ahmer,
>
> > > > The current best practice would be to request the user profile
> > > > associated with each subscription, which will contain additional
> > > > metadata about the user, such as their profile picture and complete
> > > > name. You could use the batch processing API to retrieve a number of
> > > > different user entries at once.
>
> > > > http://code.google.com/apis/youtube/2.0/developers_guide_protocol_pro...
> > > > http://code.google.com/apis/youtube/2.0/developers_guide_protocol_bat...
>
> > > > Cheers,
> > > > -Jeff Posnick, YouTube API Team
> > > > groups.google.com/group/youtube-api-gdata | apiblog.youtube.com |
> > > > @YouTubeDev
>
> > > > On Feb 20, 4:29 am, Ahmer Munawar <isolatedper...@googlemail.com>
> > > > wrote:
>
> > > > > Hi
>
> > > > > I'm working on a mobile application that will display all the
> > > > > subscriptions of a user (http://code.google.com/apis/youtube/2.0/
> > > > > developers_guide_protocol_subscriptions.html#Retrieving_subscriptions)
> > > > > in a list along with their Title Name, Thumbnail, number of
> > > > > subscribers, and total video count.
>
> > > > > Now problem is this api returns subscription without extra data such
> > > > > as thumbnail, and proper name etc (gdata.youtube.com/feeds/api/users/
> > > > > username/subscriptions?v=2).
>
> > > > > Please tell me how should i get subscriptions list along with
> > > > > thumbnail etc, Any advises, best practices will do.
>
> > > > > Thanks
--
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