Created
May 7, 2016 03:49
-
-
Save nfarah86/794ff7dda6b6b49e2754ba535b78cad5 to your computer and use it in GitHub Desktop.
iOS App Makes a Request to the Server
This file contains 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
// omitted code | |
-(void)sendEmergencyRequest; | |
{ | |
NSMutableDictionary * dictOfCredentials = [[NSMutableDictionary alloc]init]; | |
NSURL *url = [NSURL URLWithString:@"http://rescue-nfh.herokuapp.com/emergency_run"]; //URL refer to hostName | |
[self sendRequestToURL:url requestBody:dictOfCredentials]; | |
} | |
// omitted code |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment