I am using gdata objectivec client to work with youtube v2.0. I don’t want to ask user login many times. I want to login one time and get the accesstoken to use later. Please give me some sample codes to do this. Thanks .
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Best way is with the gtm-oauth2 library:
https://code.google.com/p/gtm-oauth2/
Here’s a sample app that employs it:
https://github.com/stuffmc/YouTubeSample_iOS
Also reference this SO question:
How to Refresh the token that i got from google oauth 2.0 in iOS