Sunday, June 5, 2011

test

test code sample

NSURL *requestURL = [NSURL URLWithString:@"https://www.google.com/accounts/OAuthGetRequestToken"];
 NSURL *accessURL = [NSURL URLWithString:@"https://www.google.com/accounts/OAuthGetAccessToken"];
 NSURL *authorizeURL = [NSURL URLWithString:@"https://www.google.com/latitude/apps/OAuthAuthorizeToken?domain=ecommitconsulting.be&granularity=best&location=all"];
 NSString *scope = @"https://www.googleapis.com/auth/latitude";
 
 GTMOAuthAuthentication *auth = [self myCustomAuth];
 
 // set the callback URL to which the site should redirect, and for which
 // the OAuth controller should look to determine when sign-in has
 // finished or been canceled
 //
 // This URL does not need to be for an actual web page
 [auth setCallback:@"http://www.example.com/OAuthCallback"];