support@experttexting.com
845-580-6454

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.

?>

 

 

3
Sep

Feature Requests

We are open for any feedback, feature requests from our valued customers. Please post any request here, and we will try our best to fulfill your texting needs.

3
Sep

Email 2 SMS

 

Expert Texting Email 2 SMS feature allows users to easily send SMS to multiple recipients of your email. This feature allows you to send bulk SMS from any email client / application to any mobile phone worldwide. Therefore, you do not need to login your account or remain connected to the Internet for sending SMS.

For Email 2 SMS to work you need to send emails from your registered email address only to number@email.experttexting.com along with APIKEY in the subject of the message followed by content in the body of the email.

 

3
Sep

Multilingual SMS (Unicode SMS)

Multilingual SMS

ExpertTexting have full support and can send text messages in any language including Arabic. This feature is not active by default for all users.

In order to activate this feature please contact our live Support personal or write to us on support@experttexting.com

21
Aug

Using API as HTTP Request

We are pleased to inform that ExpertTexting API can now be used as a simple HTTP Request as well.

URL: https://www.experttexting.com/exptapi/exptsms.asmx/

Simply use the Function which you want to call for example SendSMS the HTTP Request URL will be:

https://www.experttexting.com/exptapi/exptsms.asmx/SendSMS?Userid=abc&pwd=abc&APIKEY=abc&FROM=DEFAULT&To=18455806454&MSG=yourtexthere.

**Replace the parameters with your Credentials.

 

1
Aug

Coverage

ExpertTexting Coverage

 

A

30
Jul

Mass Upload

Many of our customers have been facing issues with uploading contacts using Mass upload option in the customer area.

You can find sample excel file to upload contacts . Just use the file and you will be able to upload your accounts with ease.

Download here

 

As of 3/9/2014  xlsx files are also supported and can be uploaded. Format Numbers in International format
30
Jul

Coverage in United-Kingdom

In United Kingdom, Our Network Coverage are with following carriers:

Routo
3
Tismi
OnePhone
Tru
Lycamobile
Vectone mobile
Stour Marine
Airtel Jersey
Teleena
Marathon Telecom
BT Mobile
UK01
now broadband
Orange T-Mobile EE
Pronto
Orange
FleXtel
TalkTalk Business
JSC Ingenium
PMN
C&W Jersey
Cloud9
Synectiv
Vodafone
HSL
O2

30
Jul

Coverage in United States

In United States, Our Network Coverage are with following carriers:

Illinois Valley Cellular
TelAlaska Cellular
SI Wireless
Five Star Wireless
ACS Wireless
PTCI Wireless Bonfire
AT&T Mobility
Northstar Technology
Proximity Mobility
Simmetry
Bluegrass Cellular
New Dimension Wireless
Midwest Wireless
Verizon Wireless
Mohave Wireless
PACE
NEP Wireless
Appalachian Wireless
CellularOne of East Texas
Alltel
Bug Tussel Wireless
Thumb Cellular
ASTAC Cellular – CellularOne
i wireless
MTA Wireless
PLATEAU Wireless
Mid-Tex Cellular
Long Lines Wireless
Cellular One of East Central Illinois
Northeast Wireless
Cincinnati Bell Wireless
Wilkes
Cordova Wireless
Nex-Tech Wireless
GCI Cellular
Southern LINC
WestLink Communications
UBET Wireless
Trans Texas PCS
Crossroads Wireless
Get Mobile
Pine Belt Wireless
Sprocket Wireless
Cellular One of Northeast Pennsylvania
Pine Cellular
metroPCS
Chariton Valley Cellular
Centennial Wireless
Carolina West Wireless
Commnet Wireless
cv cellular
T-Mobile
Cellcom
Fisher Wireless
Chat Mobility
AmeriLink PCS
Northwest Missouri Cellular
SRT Wireless
Copper Valley Wireless
Emery Telcom
Oklahoma Western Telephone Company
Custer Telephone Wireless
Corr Wireless
U.S. Cellular
United Wireless
Sprint Nextel
Immix Wireless
Element Mobile
Indigo Wireless
Union Cellular
PetroCom
Cellular One
Nemont
PinPoint Wireless
Snake River PCS
Einstein PCS
Viaero Wireless
Pioneer Cellular
TSI
Golden State Cellular
Cricket
Edge Wireless
Telemetrix
Advantage Cellular
Mid-Rivers Wireless

30
Jul

How will you bill me?

Expert Texting is a prepaid service. You pay as you go. You will not be billed.

Any message that you sent through our system is charged through your prepay balance.