Skip to content

Instantly share code, notes, and snippets.

@achalaggarwal
Created September 7, 2011 15:16
Show Gist options
  • Select an option

  • Save achalaggarwal/1200842 to your computer and use it in GitHub Desktop.

Select an option

Save achalaggarwal/1200842 to your computer and use it in GitHub Desktop.
GCRequest.get()
NSString *_path = [[NSString alloc] init];
GCRequest *gcRequest = [[GCRequest alloc] init];
//Synchronous Request
GCResponse *_response = [[gcRequest getRequestWithPath:_path] retain];
//Asynchronous request
[gcRequest getRequestInBackgroundWithPath:_path withResponse:^(GCResponse *response) {
NSLog(@"%@", response);
}];
[gcRequest release];
[_path release];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment