Skip to content

Commit

Permalink
Fix the user auth URL permission parameter name; credit to Mirko Vivi…
Browse files Browse the repository at this point in the history
…ani.
  • Loading branch information
lukhnos committed Oct 13, 2011
1 parent f2328a3 commit 734c8ed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Source/ObjectiveFlickr.m
Expand Up @@ -114,13 +114,13 @@ - (NSString *)authToken

- (NSURL *)userAuthorizationURLWithRequestToken:(NSString *)inRequestToken requestedPermission:(NSString *)inPermission
{
NSString *perm = @"";
NSString *perms = @"";

if ([inPermission length] > 0) {
perm = [NSString stringWithFormat:@"&perm=%@", inPermission];
perms = [NSString stringWithFormat:@"&perms=%@", inPermission];
}

NSString *URLString = [NSString stringWithFormat:@"http://www.flickr.com/services/oauth/authorize?oauth_token=%@%@", inRequestToken, perm];
NSString *URLString = [NSString stringWithFormat:@"http://www.flickr.com/services/oauth/authorize?oauth_token=%@%@", inRequestToken, perms];
return [NSURL URLWithString:URLString];
}

Expand Down

0 comments on commit 734c8ed

Please sign in to comment.