Skip to content

Instantly share code, notes, and snippets.

@greenisus
Created September 14, 2011 19:41
Show Gist options
  • Save greenisus/1217556 to your computer and use it in GitHub Desktop.
Save greenisus/1217556 to your computer and use it in GitHub Desktop.
+ (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