Youtube API Authentication - Iphone

南楼画角 提交于 2019-12-05 04:26:44

Error Solved... When using a Google account to upload video to YouTube, some functions of the GData Objective-C require the Gmail account as parameter and some require the YouTube linked account as parameter.

When you call '- (void)setUserCredentialsWithUsername:(NSString *) username password:(NSString *)password;' in GDataServiceBase, the username should be the Gmail account, for example 'x...@gmail.com' and the password should be the password of the Gmail account.

But when you call '+ (NSURL *)youTubeUploadURLForUserID:(NSString *) userID clientID:(NSString *)clientID;' in GDataServiceGoogleYouTube, the userID parameter should be the YouTube linked account and the password the password of the Gmail account.

I was using email_id@gmail.com to log in where now i am just using email_id to log in. What a silly error!.. But took me 2 full days to solve.. Duhhh..!!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!