Call Us: 09590102096
Follow Us:
function foo(items) {
    var i;
    for (i = 0; i < items.length; i++) {
        alert("Ace Rocks " + items[i]);
    }
}
<?php
    /*Send SMS using PHP*/    
    
//Your User Name
$username = "UserName";
//Your Password
$password = "Password";
//Multiple mobiles numbers separated by comma
$mobileNumber = "9999999";
//Sender ID,While using Promo or Trans sender id should be 6 characters long.
$senderId = "ABCDEF";
//Your Service Name(PROMO or TRANS)
$service = "PROMO";
//Your message to send, Add URL encoding here.
$message = urlencode("Test message");
//Method Name
$method = "send_sms";
//Prepare you post parameters
$postData = array(
'user_name' => $username,
'password' => $password,
'sender_id' => $senderId,
'service' => $service,
'mobile_no' => $mobileNumber
'message' => $message
'method' => $method
;
//API URL
$url="https://aikonsms.co.in/control/smsapi.php";
// init the resource
$ch = curl_init(); curl_setopt_array($ch, array(
CURLOPT_URL => $url,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => $postData
//,CURLOPT_FOLLOWLOCATION => true
);
//Ignore SSL certificate verification curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
//get response
$output = curl_exec($ch);
//Print error if any if(curl_errno($ch)) { echo 'error:' . curl_error($ch); }
curl_close($ch);
echo $output; ?>
/*Send SMS using JAVA*/

//Your authentication key
String username = "UserName";
//Your authentication key
String password = "Password";
//Multiple mobiles numbers separated by comma
String mobiles = "9999999";
//Sender ID,While using route4 sender id should be 6 characters long.
String senderId = "ABCDEF";
//Your message to send, Add URL encoding here.
String message = "Test message";
//define service
String service="service";
//define method
String method="send_sms";

//Prepare Url
URLConnection myURLConnection=null;
URL myURL=null;
BufferedReader reader=null;

//encoding message 
String encoded_message=URLEncoder.encode(message);

//Send SMS API
String mainUrl="https://aikonsms.co.in/control/smsapi.php?";

//Prepare parameter string 
StringBuilder sbPostData= new StringBuilder(url);
sbPostData.append("user_name="+username); 
sbPostData.append("&password="+password); 
sbPostData.append("&mobiles="+mobiles);
sbPostData.append("&message="+encoded_message);
sbPostData.append("&service="+service);
sbPostData.append("&sender_id="+senderId);
sbPostData.append("&method="+method);

//final string
mainUrl = sbPostData.toString();
try
{
    //prepare connection
    myURL = new URL(mainUrl);
    myURLConnection = myURL.openConnection();
    myURLConnection.connect();
    reader= new BufferedReader(new InputStreamReader(myURLConnection.getInputStream()));
    //reading response 
    String response;
    while ((response = reader.readLine()) != null) 
    //print response 
    System.out.println(response);
    
    //finally close connection
    reader.close();
} 
catch (IOException e) 
{ 
	e.printStackTrace();
} 
using System; 
using System.Collections.Generic; 
using System.Text; 
using System.Net; 
using System.IO; 
namespace AikonApi{ 
class Program{ 
static void Main(string[] args){ 
string result = ""; 
WebRequest request = null; 
HttpWebResponse response = null; 
try{ 
String mobile_no = "XXXXXXXXXX"; 
String user_name = "User name";
String password = "password";
String sender_id = "AIKONS";
String service = "TRANS";
//string message = HttpUtility.UrlEncode("This is a test message");
String url = "https://aikonsms.co.in/control/smsapi.php?user_name=" + user_name + "&password=" + password + "&sender_id=" + sender_id + "&service=" + service + "&mobile_no=" + mobile_no + "&message=This is a test message&method=send_sms"; 
request = WebRequest.Create(url); 
// Send the 'HttpWebRequest' and wait for response.
response = (HttpWebResponse)request.GetResponse(); 
Stream stream = response.GetResponseStream(); 
Encoding ec = System.Text.Encoding.GetEncoding("utf-8"); 
StreamReader reader = new 
System.IO.StreamReader(stream, ec); 
result = reader.ReadToEnd(); 
Console.WriteLine(result); 
reader.Close(); 
stream.Close(); 
} 
catch (Exception exp){ 
Console.WriteLine(exp.ToString()); 
} 
finally{ 
if(response != null) 
response.Close(); 
} 
} 
} 
} 
<!-- Send SMS using XML -->

<MESSAGE>     
	<AUTHKEY>Authentication Key </AUTHKEY>     
	<SENDER>SenderID</SENDER>     
	<ROUTE>Template</ROUTE>     
	<CAMPAIGN>XML API</CAMPAIGN>     
	<SMS TEXT="message1" >         
		<ADDRESS TO="number1"></ADDRESS>         
		<ADDRESS TO="number2"></ADDRESS>     
	</SMS>     
	<SMS TEXT="hi test message" >         
		<ADDRESS TO="number3"></ADDRESS>
	</SMS>
</MESSAGE>
import urllib
import urllib2
user_name = 'User Name'
password = 'Password'
sender_id = 'AIKONS'
service = 'TRANS'
mobile_no = 'XXXXXXXXXX'
message = 'This is a test message.'
method = 'send_sms'
values = {
	'user_name' : user_name,
	'password' : password,
	'sender_id' : sender_id,
	'service' : service,
	'mobile_no' : mobile_no,
	'message' : message,
	'method' : method
	}
url = 'https://aikonsms.co.in/control/smsapi.php'
postdata = urllib.urlencode(values)
req = urllib2.Request(url, postdata)
response = urllib2.urlopen(req)
output = response.read()
print output
//Android SMS API integration code

//Your authentication key
String authkey = "YourAuthKey"; //Multiple mobiles numbers separated by comma
String mobiles = "9999999"; //Sender ID,While using route4 sender id should be 6 characters long.
String senderId = "102234"; //Your message to send, Add URL encoding here.
String message = "Test message"; //define route
String route="default";
URLConnection myURLConnection=null;
URL myURL=null;
BufferedReader reader=null;
//encoding message
String encoded_message=URLEncoder.encode(message);
//Send SMS API
String mainUrl="https://aikonsms.co.in/control/smsapi.php?";
//Prepare parameter string
StringBuilder sbPostData= new StringBuilder(mainUrl);
sbPostData.append("authkey="+authkey);
sbPostData.append("&mobiles="+mobiles);
sbPostData.append("&message="+encoded_message);
sbPostData.append("&route="+route);
sbPostData.append("&sender="+senderId);

//final string
mainUrl = sbPostData.toString(); try
{
//prepare connection
myURL = new URL(mainUrl);
myURLConnection = myURL.openConnection();
myURLConnection.connect();
reader= new BufferedReader(new InputStreamReader(myURLConnection.getInputStream()));

//reading response
String response;
while ((response = reader.readLine()) != null) //print response
Log.d("RESPONSE", ""+response);

//finally close connection
reader.close(); }
catch (IOException e) {
e.printStackTrace();
}
//IOS SMS API integration code

//Create Objects
NSMutableData * responseData;
NSURLConnection * connection;

// In your viewDidLoad method add this lines -(void)viewDidLoad { [super viewDidLoad]; //Your authentication key NSString * authkey = @"YourAuthKey"; //Multiple mobiles numbers separated by comma NSString * mobiles = @"9999999"; //Sender ID,While using route4 sender id should be 6 characters long. NSString * senderId = @"102234"; //Your message to send, Add URL encoding here. NSString * message = @"Test message"; //define route NSString * route = @"default";
// Prepare your url to send sms with this parameters. NSString * url = [[NSString stringWithFormat:@"https://aikonsms.co.in/control/smsapi.php?authkey=%@&mobiles=%@&message=%@&sender=%@&route=%@", authkey, mobiles, message, senderId, route] 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]; }
'VB6 SMS API integration code

Private Sub Command1_Click()
    Dim DataToSend As String
    Dim objXML As Object
    Dim message As String
    Dim authKey As String
    Dim mobiles As String
    Dim sender As String
    Dim route As String
    Dim URL As String

'Set these variables
authKey = "Your auth key";
mobiles = "9999999999";
'Sender ID,While using route4 sender id should be 6 characters long. sender = "TESTIN";
' this url encode function may not work fully functional. message = URLEncode(" Your message ")
'Define route route = "default" ' do not use https URL = "https://aikonsms.co.in/control/smsapi.php?"
Set objXML = CreateObject("Microsoft.XMLHTTP") objXML.Open "POST", URL , False objXML.setRequestHeader "Content-Type", "application/x-www-form-urlencoded" objXML.send "authkey=" + authKey + "&mobiles=" + mobiles + "&message=" + message + "&sender=" + sender + "&route=" + route
If Len(objXML.responseText) > 0 Then MsgBox objXML.responseText End If End Sub Function URLEncode(ByVal Text As String) As String Dim i As Integer Dim acode As Integer Dim char As String URLEncode = Text For i = Len(URLEncode) To 1 Step -1 acode = Asc(Mid$(URLEncode, i, 1)) Select Case acode Case 48 To 57, 65 To 90, 97 To 122 ' don't touch alphanumeric chars Case 32 ' replace space with "+" Mid$(URLEncode, i, 1) = "+" Case Else ' replace punctuation chars with "%hex" URLEncode = Left$(URLEncode, i - 1) & "%" & Hex$(acode) & Mid$ _ (URLEncode, i + 1) End Select Next End Function
//Windows SMS API integration code
try
{
string strResult = ""; //Prepare you post parameters
var postValues = new List<KeyValuePair<string, string>>(); //Your authentication key
postValues.Add(new KeyValuePair<string, string>("authkey", "YourAuthKey")); //Multiple mobiles numbers separated by comma
postValues.Add(new KeyValuePair<string, string>("mobiles", "9999999")); //Sender ID,While using route4 sender id should be 6 characters long.
postValues.Add(new KeyValuePair<string, string>("sender", "102234")); //Your message to send, Add URL encoding here.
string message = HttpUtility.UrlEncode("Test message");
postValues.Add(new KeyValuePair<string, string>("message", message)); //Select route
postValues.Add(new KeyValuePair<string, string>("route","default"));
//Prepare API to send SMS
Uri requesturl = new Uri("https://aikonsms.co.in/control/smsapi.php"); //create httpclient request
var httpClient = new HttpClient();
var httpContent = new HttpRequestMessage(HttpMethod.Post, requesturl); httpContent.Headers.ExpectContinue = false; httpContent.Content = new FormUrlEncodedContent(postValues); HttpResponseMessage response = await httpClient.SendAsync(httpContent);
//Get response
var result = await response.Content.ReadAsStringAsync(); strResult = result.ToString(); response.Dispose();
httpClient.Dispose();
httpContent.Dispose();
}
catch (Exception ex)
{
throw ex;
}
Robust API PHP Java ASP.Net Python Android IOS Windows C# Ruby



Video Launching Soon!

Address
  • Aikon E Solutions
    148, 8th Main Rd, Sri Guru Raghavendra Complex, 2nd Floor, Basaveshwara, Circle, BEML Gate,III Stage, RR Nagar, Bengaluru, Karnataka 560098, India.
    Registered Office: NO: 13-14, SV Complex, Kothanur Main Road, JP Nagar,7th Phase, Bangalore-560078
Stay Connected

Bulk SMS Service

Aikonsms would like to introduce you Bulk SMS Service that helps you to enlarge your business's ability across India. SMS promotion Service helps you to inform promotions, news or activities from your business to the right target of your audience. We offer web based Web SMS for Transactional SMS and Promotional SMS service for end-users along with Developer API Tool and SMPP SMS Gateway integration tools for Corporate users. Aikonsms Gateway API allows application developers to send text messages to all over India. You can integrate Bulk SMS Service into your applications, software, websites and custom apps.

All rights reserved © 2015-17. Designed by Aikon E Solutions