Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

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