by Skytells, Inc.
What is Skytells API?
Skytells API is the primary way for developers to read and write to the Skytells. You can Send SMS and Outbound Voice Calls or even WhatsApp messages using Skytells API. The Skytells API has multiple versions available, read about what has changed and how to upgrade from older versions.
Requirements
- Apache / Web Server
- PHP = > 5.2.0
- API Key ( You can register a free account by visiting : https://www.skytells.net/signup )
- Skytells Credit ( For Paid Services )
- See ( Reference ) Down Below
How to get started?
-
Clone the SDK
-
Include the main class file on your script by calling :
require("Library/Client.php");
- Start Making Api Calls
Please refere to Skytells Developer Console to learn how to use Skytells API by visiting these links below.
You can do it by two different methods. GET
This is the main handler for exploring Skytells API So, You can perform GET action by calling this function Example :
$SkytellsClient->Get("me");
You can set this function to return the response as an STD Class Object Using the following Call :
$SkytellsClient->Get("me", TRUE);
WARNING : This function performs HTTP GET Only, If you planning to use it for POSTING an parameter to the API your api call will NOT be accepted.
POST
This is the one of main handlers for exploring Skytells API So, You can perform POST action by calling this function Query => The query used for API Call. PostedData => The PostHeaders ( Parameters ), must be in Array. Example :
echo $SkytellsClient->Post("sms/send", array("to" => "1xxxx", "message" => "test"));
You can set this function to return the response as an STD Class Object Using the following Call :
echo $SkytellsClient->Post("sms/send", array("to" => "1xxxx", "message" => "test"), TRUE);
WARNING : All Posted Parameters must be in a PHP ARRAY.
Here's what you can do step by step..
After including the Client Class File into your script, You can perform your first API Call by calling this method
require("Library/Client.php");
$Client = new SkytellsClient("APIKEY");
echo $Client->Get("me");
By calling this method, The API sends your account details into your script as JSON Object.
Or simply you can authenticate your account/user using this method after passing the API key
require("Library/Client.php");
$Client = new SkytellsClient("APIKEY");
echo $Client->getMyDetails();
By calling this method, The server will return the account's basic information such as
- ID
- Name
- Mobile
- List of Transactions
- List of Sent SMS(s)
- List of Sent Voice Calls
- List of Skytells PM Licenses
Alright, Looks good? Let's move on and send an SMS...
The Skytells SMS API one of the bestest backend SMS platforms, Which you can send an international mobile SMS with low rates.
Edges
- Registering SenderID
- Send SMS
- Get an sent SMS Details
- Get All Sent SMS(s)
The SenderID is the main identifier for each SMS you send You must register your senderID before sending or you can use By default the senderID ("Skytells") will be registered.
In order to register a new SenderID, Please perform this call.
require("Library/Client.php");
$Client = new SkytellsClient("APIKEY");
echo $Client->registerSenderID("{YOURSENDERID}";
After then, Your SenderID ("Sender Name") will be registered on Skytells SMS API. Now Everything is made up!, Let's Send our first SMS.
If you have enough credit to cover the SMS, You can send it right away by calling this function.
require("Library/Client.php");
$Client = new SkytellsClient("APIKEY");
echo $Client->sendSMS("1XXXXXXNNNNNX", "SMS Message", "SenderName");
* Please note : Numbers with (+) or (00) will not be accepted.
You can perform GET on every outgoing/sent SMS on your account by calling this method.
require("Library/Client.php");
$Client = new SkytellsClient("APIKEY");
echo $Client->getSMSDetails("SMSID");
You can perform GET on every outgoing/sent SMS on your account by calling this method.
require("Library/Client.php");
$Client = new SkytellsClient("APIKEY");
echo $Client->getSMSHistory();
The Skytells Pre-Spoken Calls API one of the bestest backend TTS-Messages platforms, Which you can send an international mobile voice calls with low rates.
Edges
- Sending TTS Calls
- Get an outgoing Call
- Get All Sent Call(s)
If you have enough credit to cover the Mobile Call, You can send it right away by calling this function.
require("Library/Client.php");
$Client = new SkytellsClient("APIKEY");
echo $Client->sendCall("1XXXXXXNNNNNX", "Call Content (Spoken Message)");
* Please note : Numbers with (+) or (00) will not be accepted.
You can perform GET on every outgoing/sent Call on your account by calling this method.
require("Library/Client.php");
$Client = new SkytellsClient("APIKEY");
echo $Client->getCallDetails("CALLID");
You can perform GET on every outgoing/sent call on your account by calling this method.
require("Library/Client.php");
$Client = new SkytellsClient("APIKEY");
echo $Client->getCallsHistory();
You can manage/view your Skytells account using the following endpoints
- me
- me/sms
- me/transactions
- me/ttscalls
- me/licenses
You can perform fetch request on your profile normally by calling
echo $Client->Get("me");
To Get Your UserID
echo $Client->getUserID();
To Get Your UserName
echo $Client->getUserName();
You can fetch all sent messages by calling this method
- Please note : You can perform this action on other profile if you have granted permission : ( user_sms )
- Normally, You can only perform this call on your profile.
echo $Client->getSMSHistory();
You can fetch all created transactions by calling this method
- Please note : You can perform this action on other profile if you have granted permission : ( user_transactions )
- Normally, You can only perform this call on your profile.
echo $Client->getTransactions("me");
In order to get the list of sent voice call, Please call this method
echo $Client->getCallsHistory("me");
To get all Skytells PM licenses you own, Please perform this call
echo $Client->Get("me/licenses");