So yes, this does appear to be due to a change on the YouTube side of
things. As per the docs:
"""
This request does not require authentication, but you will only be
able to retrieve the contacts of users who display the Friends module
on their channel pages. (If a user's contacts are displayed on the
user's channel, then the user is already making the contact list
public, and YouTube therefore allows API clients to access that same
information.)
If you try to retrieve contacts for a specific user who does not
display the Friends module on his channel, the API will return a 403
(Forbidden) HTTP response.
"""
And the Friends module no longer seems to be available, so it's no
longer possible to retrieve that information via the API. I'll let the
team responsible for our documentation know to make that explicit.
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