How to integrate SMS API in iPhone?
With the help of an SMS API (Application Programming Interface) the functions of a computer program (such as the bulk SMS) can be made available to another computer program (such as the notification component of a ticket booking site).
SMS API Integration is the means to integrate SMS services on your panels such as website, software, and CRM etc. SMS API Integration is thought to be the simplest way to send automated SMS directly from your defined process
APIs are automated
APIs automate the entire way a system works, thereby reducing the errors
APIs can help send manual customized SMS
Integrating APIs is simple. Just visit any SMS gateway integration service provider, and copy and paste the code generated to start integrating the API
How to choose a good SMS API service provider
Make sure to compare, choose and opt from the available sources to finally choose a SMS gateway service provider that has all these features -
User friendly SMS API admin panel
Easy to copy and paste code
Custom SMS integration facilities
Reduced use of software
SMS contact details
Uploading of file facility
SMS scheduling
Sub domain feature
Support services
API Integration
API integration in iPhone is almost like we mentioned earlier - when we discussed earlier ASP.NET
How to do it?
Visit the website of an SMS API integration service provider such as BroadNet and then visit the coding page; where you can easily copy the defined codes to easily integrate into your website.
Here’s a typical example of iOS phone sample for SMS code
//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 NSString * ApiUrl = @"ApiUrl"; //Multiple mobiles numbers separated by comma NSString * user = @"uname"; NSString * pass = @"******"; NSString * mobiles = @"9999999"; //Sender ID,While using route4 sender id should be 6 characters long. NSString * sid = @"102234"; //Your message to send, Add URL encoding here. NSString * message = @"Test message"; // Prepare your url to send sms with this parameters. NSString * url = [[NSString stringWithFormat:@"https://broadnet.me/api/xxxxx.php?user=%@&pass=%@&mobiles=%@&message=%@&sid=%@", user, pass, mobiles, message, sid] stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; NSURLRequest * request = [NSURLRequest requestWithURL:[NSURL URLWithString:url]]; connection = [[NSURLConnection alloc] initWithRequest:request delegate:self]; } // implement URLConnection Delegate Methods as follow -(void) connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response { //Get response data responseData = [NSMutableData data]; } -(void) connection:(NSURLConnection *)connection didReceiveData:(NSData *)data { [responseData appendData:data]; } -(void) connection:(NSURLConnection *)connection didFailWithError:(NSError *)error { UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Error"message:error.localizedDescription delegate:self cancelButtonTitle:nil otherButtonTitles:@"OK", nil]; [alert show]; } -(void) connectionDidFinishLoading:(NSURLConnection *)connection { // Get response data in NSString. NSString * responceStr = [[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding]; }
With BroadNet’s simplistic and value oriented SMS integration feature, you can easily maintain and manage your website.











