[youTubeOAuth authenticateWithYouTubeUsingYouTubeClientID:Client_ID
youTubeClientSecret:Client_Secret
responseType:@"code"
scope:@"https://gdata.youtube.com"
state:@""
appURLCallBack:@"urn:ietf:wg:oauth:2.0:oob:auto"
accessType:@"online"
viewController:self
:^(BOOL success, NSString *youTubeToken, NSString *youTubeRefreshToken) {
if (success) {
//Do whatever you need with the token
}
}];