Skip to content

Commit

Permalink
Merge branch 'master' of github.com:romaonthego/REActivityViewController
Browse files Browse the repository at this point in the history
  • Loading branch information
romaonthego committed May 10, 2013
2 parents b7213aa + a860900 commit a1d8254
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion REActivityViewController/RETumblrActivity.m
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ - (void)showAuthDialogWithActivityViewController:(REActivityViewController *)act
];
controller.onLoginButtonPressed = ^(REAuthViewController *controller, NSString *username, NSString *password) {
[weakSelf authenticateWithUsername:username password:password success:^(AFXAuthClient *client) {
NSMutableURLRequest *request = [client requestWithMethod:@"POST" path:@"/v2/user/info" parameters:nil];
NSMutableURLRequest *request = [client requestWithMethod:@"GET" path:@"/v2/user/info" parameters:nil];
AFJSONRequestOperation *operation = [AFJSONRequestOperation JSONRequestOperationWithRequest:request success:^(NSURLRequest *request, NSHTTPURLResponse *response, id JSON) {
NSDictionary *blog = [[[[JSON objectForKey:@"response"] objectForKey:@"user"] objectForKey:@"blogs"] objectAtIndex:0];
NSURL *url = [NSURL URLWithString:[blog objectForKey:@"url"]];
Expand Down

0 comments on commit a1d8254

Please sign in to comment.