Advertisement
Guest User

Untitled

a guest
Feb 13th, 2016
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. AFOAuth2Manager *OAuth2Manager =
  2. [[AFOAuth2Manager alloc] initWithBaseURL:@"https://api.instagram.com/oauth/authorize/"
  3. clientID:kClientID
  4. secret:kClientSecret];
  5.  
  6. [OAuth2Manager authenticateUsingOAuthWithURLString:<#(NSString *)#> code:<#(NSString *)#> redirectURI:<#(NSString *)#> success:<#^(AFOAuthCredential *credential)success#> failure:<#^(NSError *error)failure#>];
  7. [OAuth2Manager authenticateUsingOAuthWithURLString:<#(NSString *)#> parameters:<#(NSDictionary *)#> success:<#^(AFOAuthCredential *credential)success#> failure:<#^(NSError *error)failure#>];
  8. [OAuth2Manager authenticateUsingOAuthWithURLString:<#(NSString *)#> refreshToken:<#(NSString *)#> success:<#^(AFOAuthCredential *credential)success#> failure:<#^(NSError *error)failure#>];
  9. [OAuth2Manager authenticateUsingOAuthWithURLString:<#(NSString *)#> scope:<#(NSString *)#> success:<#^(AFOAuthCredential *credential)success#> failure:<#^(NSError *error)failure#>];
  10. [OAuth2Manager authenticateUsingOAuthWithURLString:<#(NSString *)#> username:<#(NSString *)#> password:<#(NSString *)#> scope:<#(NSString *)#> success:<#^(AFOAuthCredential *credential)success#> failure:<#^(NSError *error)failure#>];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement