support@experttexting.com
845-580-6454
20
Jan

Availability of Rest API

With many new features being added to ExpertTexting, one of the latest addition is the REST API that allows other apps and platforms to interact with ExpertTexting. It’s a revolutionary addition that will help developers build custom applications and integrate systems with ExpertTexting.

ExpertTexting API exposes a set of RESTful endpoints that enable your application to send messages and GET information such as message status, query account balance, read unread message etc.

Click Here for Rest API Documentation.

28
Aug

Sample code

API Sample Code

 

As requested, sample code for the api is now available, download them now, It is available for the following languages at the moment.

 

If it still does not fulfill your needs, Check out how to use it as HTTP Request.

http://blog.experttexting.com/using-experttexting-as-http-request/

 

Happy Texting !!

21
Aug

Sending OTP and Alerts using ShortCode

How to send OTP , Alerts using ShortCode

Sending OTP, Alerts, Notification is frequently required service.

Alerts / Notification campaigns are used to set a pre-defined template with dynamic variables which can later be used via Rest API. These variables are defined dynamically i.e. add “@{“ before your variable word and add “}” after it. For example: @{phonenumber}, @{number}, @{code} are all valid variables.

How to create it ?

 

1

 

That’s It, Just submit the details and after approval you will be able to use it,.

Each Campaign is provided with a campaign key which is private and unique for all campaigns and will be required as parameter for HTTP Rest Calls.

Upon creating alert/notification campaign, you will get an API URL which will have parameters for all the custom variables you defined in the message text. You will use this API to run this campaign.
For example: you entered the following text in the message of your campaign:

“Hello @{name}, your mobile verification code is @{code}

The API URL will look like :
https://www.experttexting.com/ExptRestApi/sms/json/campaign/alert?campaign_key={campaignkey}&to_number={to_number}&key1={name}&key2={code}

You will have to replace all the variables (words that begin and end with “{ }”) in the above URL with the actual data before accessing the URL.

Just call our HTTP Rest API and with required parameters and our Intelligent system does the rest.

 

Happy Texting :)

4
Jun

SMS Reseller

How it Works?

Step 1: Request to convert your account to Reseller account by sending an email at sales@experttexting.com
Step 2: You’ll get a reply from Sales team for account updgrade, Now you can see Sub-Accounts option under your ET Account area.
Step 3: Create New accounts by using Sub-Accounts options
Step 4: You can give sub-accounts to your customer and ask them to login at website GlobalBulkSMS.Net

Current Available features:

1 – Custom Pricing – You can set custom pricing/rates for your customer by using Price List option with each sub account
2 – Add funds – You can add as many virtual credit to your customer account. (your customer will be billed as per your price list, and you’ll be billed as ET rates for same message)

Reseller – FAQs

1. How billing will be done?
Answer: You’ll be charged as per ET rates given to you, and your customer will be charged from virtual credit as per your price list you set up for specified destination.
2. What if my Main account balance ended up?
Answer: All the messages your customer execute from sub-account will be FAILED.
3. What if my customer account balance ended up?
Answer: All the messages your customer execute from his account will be FAILED.
4. How can i collect/receive payments from my Customer?
Answer: You can collect payments from your customer by any mean.
5. Is there any fee associated with Reseller Main Account?
Anwer: When ever your account is upgraded to Reseller account, it’ll be 7-day free trial, afterwards you’ll be billing as USD $10.00 per month for each sub-account. It’ll be waived if your sub-account volume exceeds 100k text messages per month.
1
Dec

ExpertTexting SMS API in PHP

Using ExpertTexting SMS API in PHP

Many of our customers have been asking for integration with PHP. Here is sample code and class files for your easy integration .

 

To start with lets write a base class with basic functionality which performs the following tasks.

  1. Send SMS
  2. Send Multilingual (Unicode) SMS
  3. Query Balance

Please make sure to replace the variables in bold with your experttexting account details and the sms details before using this example.

<?php
class experttexting_sms{
public $base_url_SendSMS= ‘https://www.experttexting.com/exptapi/exptsms.asmx/SendSMS’;
public $base_url_SendSMSUnicode= ‘https://www.experttexting.com/exptapi/exptsms.asmx/SendSMSUnicode’;
public $base_url_QueryBalance=’https://www.experttexting.com/exptapi/exptsms.asmx/QueryBalance’;

public $username= ‘Your UserName Here’;

public $password= ‘Your Password Here’;

public $apikey= ‘Your API Key Here’;

public $msgtext= ”;

public $from= ”;

public $to= ”;
function send(){
$fieldcnt=6;
$fieldstring = “Userid=$this->username&pwd=$this->password&APIKEY=$this->apikey&MSG=$this->msgtext&FROM=$this->from&To=$this->to”;

$ch = curl_init();
curl_setopt($ch,CURLOPT_URL,$this->base_url_SendSMS);
curl_setopt($ch,CURLOPT_POST,$fieldcnt);
curl_setopt($ch,CURLOPT_POSTFIELDS,$fieldstring);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
$res = curl_exec($ch);
curl_close($ch);
return $res;
}

 

function sendUnicode(){
$fieldcnt=6;
$fieldstring = “Userid=$this->username&pwd=$this->password&APIKEY=$this->apikey&MSG=$this->msgtext&FROM=$this->from&To=$this->to”;

$ch = curl_init();
curl_setopt($ch,CURLOPT_URL,$this->base_url_SendSMSUnicode);
curl_setopt($ch,CURLOPT_POST,$fieldcnt);
curl_setopt($ch,CURLOPT_POSTFIELDS,$fieldstring);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
$res = curl_exec($ch);
curl_close($ch);
return $res;
}

 

function QueryBalance(){
$fieldcnt=3;
$fieldstring = “Userid=$this->username&pwd=$this->password&APIKEY=$this->apikey”;

$ch = curl_init();
curl_setopt($ch,CURLOPT_URL,$this->base_url_QueryBalance);
curl_setopt($ch,CURLOPT_POST,$fieldcnt);
curl_setopt($ch,CURLOPT_POSTFIELDS,$fieldstring);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
$res = curl_exec($ch);
curl_close($ch);
return $res;
}

}
?>

 

 

 

<?php

require_once(‘expt.php’); // Include SMS base class file. download from the URL above

$expertTexting= new experttexting_sms(); // Create SMS object.

$expertTexting->from= ‘SENDERID’; // Sender of the SMS – PreRegistered through the Customer Area.
$expertTexting->to= ‘Receiver Number’; // The full International mobile number of the without + or 00
$expertTexting->msgtext= ‘SMS text’; // The SMS content.
//echo $expertTexting->send(); // Send SMS method.

echo $expertTexting->sendUnicode(); // Send Multilangual SMS method.

//echo $expertTexting->QueryBalance(); // Query Your Account Balance method.

?>