Adding missing authorization header in example
This commit is contained in:
parent
5a3a9b2f41
commit
d159be3757
1 changed files with 1 additions and 0 deletions
|
|
@ -81,6 +81,7 @@ NSOperationQueue *queue = [[[NSOperationQueue alloc] init] autorelease];
|
||||||
``` objective-c
|
``` objective-c
|
||||||
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"https://gowalla.com/friendships/request?user_id=1699"]];
|
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"https://gowalla.com/friendships/request?user_id=1699"]];
|
||||||
[request setHTTPMethod:@"POST"];
|
[request setHTTPMethod:@"POST"];
|
||||||
|
[request setValue:@"#{Base64-Encoded Credentials}" forHTTPHeaderField:@"Authorization"];
|
||||||
|
|
||||||
AFHTTPRequestOperation *operation = [[[AFHTTPRequestOperation alloc] initWithRequest:request] autorelease];
|
AFHTTPRequestOperation *operation = [[[AFHTTPRequestOperation alloc] initWithRequest:request] autorelease];
|
||||||
operation.completionBlock = ^ {
|
operation.completionBlock = ^ {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue