1 / 3

How to integrate SMS API in iPhone?

Adding an SMS API and integrating such an API on iPhone is simple. Try this iPhone sample code for integrating SMS API in iPhone

RabihFarah
Télécharger la présentation

How to integrate SMS API in iPhone?

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 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

  2. 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

  3. { [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. About the Author BroadNet Technologies is an international leading Business Messaging Solution Provider. It’s joined the GSMA as an Associate Member also it has been awarded certification to the ISO 27001:2013; BroadNet Technologies has been a pioneer in the use of SMS- messaging service across global markets since 2003 thus widening its range of products and services to include Bulk SMS, A2P SMS, HLR Lookup, SMSC Gateway, SMS Firewall, Web Solutions, and Mobile Applications.

More Related