Thursday, April 19, 2012

[YouTube-API] Re: Getting ServiceForbiddenException while retrieving a user's contact for the last five days

Hello Mohammed,

I'll ask around internally about whether anything recently changed
that would prevent you from retrieving the contacts of arbitrary
users. There might be a YouTube-wide change to lock down that info,
for instance.

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


On Apr 19, 10:30 am, mrutuberobot <mrutubero...@gmail.com> wrote:
> The default (i.e. logged in user's contact) works however if you put
> another user other than default (i.e. try ihindihd or any other), it always
> returns "Currenly authenticated user does not have access to these
> contacts".  This used to work last week and before.
>
> Please help!
>
> Thanks,
> Mohammed
>
>
>
>
>
>
>
> On Friday, April 13, 2012 11:41:54 AM UTC-4, mrutuberobot wrote:
>
> > The simple YouTube Data Java API example provided at "https://
> > developers.google.com/youtube/2.0/
> > developers_guide_java#Enabling_user_interaction<http://developers.google.com/youtube/2.0/developers_guide_java#Enabli...>"
> > to "Retrieving a
> > user's contacts" is throwing "ServiceForbiddenException".  This used
> > to work last week.  Here is my code below as per the example code
> > above:
>
> >         try {
> >             String profile = "GoogleDevelopers";
> >             String feedUrl = "http://gdata.youtube.com/feeds/api/
> > users/ <http://gdata.youtube.com/feeds/api/users/>" + profile +
> > "/contacts";
>
> >             FriendFeed friendFeed = service.getFeed(new URL(feedUrl),
> > FriendFeed.class);
>
> >             for (FriendEntry friendEntry : friendFeed.getEntries()) {
> >                 System.out.print("Friend: " +
> > friendEntry.getUsername());
> >                 System.out.println(", Status:" +
> > friendEntry.getStatus().toString());
> >             }
> >         } catch (Exception e) {
> >             e.printStackTrace();
> >         }
>
> > Please help as our software is not working and getting lots of
> > complain from the customers.
>
> > Thanks,
> > Mohammed
> On Friday, April 13, 2012 11:41:54 AM UTC-4, mrutuberobot wrote:
>
> > The simple YouTube Data Java API example provided at "https://
> > developers.google.com/youtube/2.0/
> > developers_guide_java#Enabling_user_interaction<http://developers.google.com/youtube/2.0/developers_guide_java#Enabli...>"
> > to "Retrieving a
> > user's contacts" is throwing "ServiceForbiddenException".  This used
> > to work last week.  Here is my code below as per the example code
> > above:
>
> >         try {
> >             String profile = "GoogleDevelopers";
> >             String feedUrl = "http://gdata.youtube.com/feeds/api/
> > users/ <http://gdata.youtube.com/feeds/api/users/>" + profile +
> > "/contacts";
>
> >             FriendFeed friendFeed = service.getFeed(new URL(feedUrl),
> > FriendFeed.class);
>
> >             for (FriendEntry friendEntry : friendFeed.getEntries()) {
> >                 System.out.print("Friend: " +
> > friendEntry.getUsername());
> >                 System.out.println(", Status:" +
> > friendEntry.getStatus().toString());
> >             }
> >         } catch (Exception e) {
> >             e.printStackTrace();
> >         }
>
> > Please help as our software is not working and getting lots of
> > complain from the customers.
>
> > Thanks,
> > Mohammed

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