Created
September 7, 2011 15:26
-
-
Save achalaggarwal/1200866 to your computer and use it in GitHub Desktop.
GCRequest.delete()
This file contains hidden or 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
| 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