/ Published in: iPhone
The following example of iOS Phone sample SMS code employs user-friendly object, with a basis on the HTTP API.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
//IOS SMS API integration code //Create Objects NSMutableData * responseData; NSURLConnection * connection; // In your viewDidLoad method add this lines -(void)viewDidLoad { [super viewDidLoad]; //Your application url //Multiple mobiles numbers separated by comma //Sender ID,While using route4 sender id should be 6 characters long. //Your message to send, Add URL encoding here. // Prepare your url to send sms with this parameters. } // implement URLConnection Delegate Methods as follow { //Get response data } { [responseData appendData:data]; } { UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Error"message:error.localizedDescription delegate:self cancelButtonTitle:nil otherButtonTitles:@"OK", nil]; [alert show]; } { // Get response data in NSString. }
URL: https://www.broadnet.me/developer-tools/sms-sample-code/ios-sample-code-sms.html