Created
September 14, 2011 19:41
-
-
Save greenisus/1217556 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+ (void)authenticate:(CKResultBlock)completionBlock errorBlock:(CKResultBlock)errorBlock { | |
NSDictionary *headers = [[[NSDictionary alloc] initWithObjectsAndKeys:@"rackcloud07", @"X-Auth-User", @"secret", @"X-Auth-Key", nil] autorelease]; | |
CKRequest *request = [CKRequest requestWithMap:[CKRouterMap mapWithRemotePath:@"https://auth.api.rackspacecloud.com/v1.0"]]; | |
[request addHeaders:headers]; | |
request.completionBlock = completionBlock; | |
request.errorBlock = errorBlock; | |
[request send]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment