Thursday, April 19, 2012

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

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
" 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/
" + 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
" 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/
" + 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 view this discussion on the web visit https://groups.google.com/d/msg/youtube-api-gdata/-/gwCgqg7jW-0J.
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