Download the PHP package ditsly/dits-sms-api without Composer
On this page you can find all versions of the php package ditsly/dits-sms-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ditsly/dits-sms-api
More information about ditsly/dits-sms-api
Files in ditsly/dits-sms-api
Package dits-sms-api
Short Description DITS SMS API is build for DITS SMS - Bulk SMS Application For Marketing
License MIT
Informations about the package dits-sms-api
DITS SMS API
DITS SMS API is build for DITS SMS - Bulk SMS Application For Marketing
Prerequisites
To run DITS SMS API you have to install DITS SMS Application on your server.
Installing
Via Composer
And Via Bash
Usage
Step 1:
If install DITS SMS API using Git Clone then load your DITS SMS API Class file and Use namespace.
If install DITS SMS API using Composer then Require/Include autoload.php file in the index.php of your project or whatever file you need to use DITS SMS API classes:.
Step 2:
set your API_KEY from https://sms.dits.ly/sms-api/info
Step 3:
Change the from Sender ID below. It can be your valid Sender ID
Step 4:
the number we are sending to - Any phone number
For multiple number please use Comma (,) after every single number.
You can insert maximum 100 numbers using comma in single api request.
You have to must include Country code at beginning of the phone number.
Step 5:
// SMS Body
// Unicode SMS
// Voice SMS
// Schedule SMS
// Create Plain/text SMS Body for request
// Create Unicode SMS Body for request
// Create Voice SMS Body for request
// Create MMS SMS Body for request
// Create Schedule SMS Body for request
Step 6:
Instantiate a new DITS SMS API request
Send SMS
Finally send your sms through DITS SMS API
Get Inbox
Get your all message
Get Balance
Get your account balance
Response
DITS SMS API return response with json
format, like:
Status Code
Status | Message |
---|---|
ok |
Successfully Send |
100 |
Bad gateway requested |
101 |
Wrong action |
102 |
Authentication failed |
103 |
Invalid phone number |
104 |
Phone coverage not active |
105 |
Insufficient balance |
106 |
Invalid Sender ID |
107 |
Invalid SMS Type |
108 |
SMS Gateway not active |
109 |
Invalid Schedule Time |
110 |
Media url required |
111 |
SMS contain spam word. Wait for approval |
Authors
- Dimensions Technology - Initial work - ditsly
All versions of dits-sms-api with dependencies
ext-curl Version *