How do I use GData to retreive profile info from YouTube?

28 views
Skip to first unread message

Zak

unread,
Nov 7, 2012, 4:11:02 PM11/7/12
to gdata-objec...@googlegroups.com
I'm trying to figure out how to get a users profile info from YouTube. My best guess is to use a GDataServiceGoogleYouTube object, but I can't find any documentation on how to use it (or 
GDataEntryYouTubeUserProfile) to get profile info. Do I also need to setup a service ticket to get a callback?

Greg Robbins

unread,
Nov 7, 2012, 6:58:35 PM11/7/12
to gdata-objec...@googlegroups.com
The gtm-oauth2 controller fetches the user's email address by default, and can also fetch some additional profile information if the appropriate property is set prior to the user signing in:

viewController.signIn.shouldFetchGoogleUserProfile = YES

The profile information is detailed at https://developers.google.com/accounts/docs/OAuth2Login#userinfocall

For any YouTube-specific profile information, see the YouTube API documentation and discussion area.

Reply all
Reply to author
Forward
0 new messages