Created
September 7, 2011 15:16
-
-
Save achalaggarwal/1200842 to your computer and use it in GitHub Desktop.
GCRequest.get()
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]; | |
| 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