SMS4BD Gateway Integration

Similar documents
All requests must be authenticated using the login and password you use to access your account.

Way2mint SMS Mobile Terminate (MT) API Guide for HTTP HTTPS

Wired 2 Wireless Technology Solutions API Help Document Copyright Introduction. 2. Parameter list

HTTP API-HELP DOCUMENT

Overview Introduction Messaging Error Codes Message parameter details Contact Details... 7

HTTP API Specification V2.7

SMS HTTP API DOCUMENTATION December 2012

API Spec Sheet For Version 2.5

Bulk HTTP API Specification

version 2.0 HTTPS SMSAPI Specification Version 1.0 It also contains Sample Codes for -.Net - PHP - Java

Cloud SMS API Guide. Version 5.1

Quriiri HTTP MT API. Quriiri HTTP MT API v , doc version This document describes the Quriiri HTTP MT API version 1 (v1).

SMS Submit Interface description HTTP Version 1.5

ezeesms URL API Documentation

Gatesms.eu Mobile Solutions for Business

SMS Relay. API Documentation SPLIO - SPRING Contact and Campaign SMS Relay API - EN v1.2.docx

Message parameter details

Way2mint SMS Mobile Terminate (MT) API Guide for HTTP / HTTPS

Forthnet Mobile Platform - groupsms http interface v1.0 1 / 9

HTTP API. Table of Contents

SONERA OPERATOR SERVICE PLATFORM OPAALI PORTAL SMS. FREQUENTLY ASKED QUESTIONS, version 2.0

Bulk SMS API Integration Document Version 1.8

API Documentation. Release Version 1 Beta

SMSCenter. SMSCenter API

NIC SMS SERVICE INTEGRATION

ERMES. Technical Specification for ex MPAY services integration. version /10/2018

Revision: 50 Revision Date: :43 Author: Oliver Zabel. GTX Mobile Messaging SMS Gateway Interface Simple HTTP API Manual

Smart Bulk SMS & Voice SMS Marketing Script with 2-Way Messaging. Quick-Start Manual

2. On completing your registration you will get a confirmation . Click on the link or paste the link into your browser to validate the account.

PANACEA PLATFORM. A unified communications platform for SMS, USSD and Push Notifications.

Version Date Description Author First version Nate. send_sms request Added DELIVERED. status in Send Sms.

Distributed Systems. 29. Firewalls. Paul Krzyzanowski. Rutgers University. Fall 2015

LINK Mobility SMS REST API MT and Delivery Reports Version 1.3; Last updated September 21, 2017

API Specification Doc

New Dashboard - Help Screens

Response: Note: Please define Dynamic Value in ##Field## The following are the parameters used: For Unicode Message:

How to Guide. How to send SMS using Textlocal

Cisco Encryption

Reseller Web Site Instructions Manual

HTTP Specification Version 1.83

HTTP API - HELP DOCUMENT

Connect Media Bulk SMS API Documentation

Sendroid Ultimate. User Manual

Integrating with Cellsynt's SMS gateway via HTTP interface (technical documentation)

Ciphermail Gateway PDF Encryption Setup Guide

Sales Station Mobile User Guide

BulkSMS / Customer, Marketo Integration Guide, version 2.6, 2018/01/19. BulkSMS / Customer. Marketo Quick Start Integration Guide

Table of Contents 1 AQL SMS Gateway How to Guide...1

Affiliate Guide. Version Jan 2017

SMS+ Client User Manual

REST SERVICE. Web Services API Version 1.5

Murphy s Magic Download API

Messaging Service REST API Specification V2.3.2 Last Modified: 07.October, 2016

BulkSMS Marketo Gateway

Alerts Webster Web-Link Descriptions

Redrabbit Cloud-based Communications Platform SMS APIs

USING SatTerm SOFTWARE WITH SMS APPLICATION NOTE

Quick Answers. You may create any Sender ID for the transactional route, provided the Sender ID should be of 6 alpha characters only.

UiBSclearing. UiBSclearing. Never lose a customer due to a failed credit card HEAD OFFICE

Introduction. Security Edition User Guide

SMS Outbound. HTTP interface - v1.1

Front Gateway Product Description for the connection between the SMS gateway and customer

Configuring SSL. SSL Overview CHAPTER

Send SMS v.3. Compatibility Switch 13 update 1 and higher.

BULK HTTP API DOCUMENTATION

API/balanceinfo.php?username=test&password= xxxxx

How to choose an SMS Provider (SMS Gateway Provider, SMS Reseller, SMS Broker)?

Websense Secure Messaging User Help

4/ FGC Uen Rev C IPX. Implementation Guide SMS Utility API 1.0

ARTIO SMS Services HTTP API Documentation

Electronic Certificate Submission Process. Michael Guymon;Dharshun Sharma;Harsimran Mann;Christian Green;Diondre Montgomery

Configuring SSL CHAPTER

Instructions for Using New API. Instructions for Using New API

ENTSO-E ACKNOWLEDGEMENT DOCUMENT (EAD) IMPLEMENTATION GUIDE

Telenor Corporate Call & SMS. API Documentation

Distributed Systems. 27. Firewalls and Virtual Private Networks Paul Krzyzanowski. Rutgers University. Fall 2013

Configuring SSL. SSL Overview CHAPTER

Click E Money Laravel Application

USER S MANUAL INDEX 1.1 SET-UP SET IP 2

Contents. Page 3: Uploading Contacts. Page 5: Sending a Message. Page 7: Analysing your Message. Page 9: Unsubscribe a Contact. Page 11: Add a Forward

SOAP API. The correct URL has been hidden. Please contact your account manager for the full URL information.

Interac e-transfer for Business User Guide

PCCW mobile SMS Web Access 2.0 User Guide

SMSPortal SMS Encapsulation (8bit data)

Messages tour Welcome to Medic Mobile s Guided Tour. Reports tour. Analytics tour. Begin the tour

Admin/User Manual SoftPal.com.ng

API USER GUIDE MARKETING MESSAGES & BROADCASTS

INTRODUCTION MERCHANT INTEGRATION. Ha noi, 14/06/2015 INTRODUCTION MERCHANT INTEGRATION 1

CipherMail encryption. CipherMail white paper

OBEXSender 2. User Guide. Version 2.4. M o n d a y, February 0 5,

PHPKB API Reference Guide

NTREIS LISTINGS. Preferences and defaults should be set in Tempo before adding a Prospect and making choices stated above.

SMS API User Guide. Document Reference: October Version: 6

Send-only SMS user guide

MySagePay User Guide

MySagePay USER GUIDE

ideal Integrated PHP

MyMobileAPI. mymobileapi.com. Windows Service Usage

SpeedChex EasyLink API

Contents SMS EXPRESS - INFORMATION PACK

Transcription:

SMS4BD Gateway Integration TECHNICAL DOCUMENTATION v3.0 This document is intended to help IT experts in integration of SMS gateway of SMS4BD. Any alteration of this document without permission is strictly prohibited. This document is a copyright of SMS4BD.

CONTENTS Abstract:... 2 Integration Steps:... 3 Integration types:... 3 Outgoing SMS Integration:... 3 Incoming SMS Integration:... 3 Outgoing SMS HTTP endpoints:... 4 Outgoing SMS HTTP Parameters:... 4 Outgoing message delivery status:... 5 Outgoing message delivery status Example:... 6 Incoming Operation endpoints:... 6 Few IMportant Things to note:... 7 HTTP API Example (Sending a single SMS):... 7 HTTP API Example (Checking Balance):... 7 PHP Code Example (Sending a single SMS):... 8 PHP Code Example (Checking Balance):... 8.Net Code Example (Sending a single SMS):... 8.Net Code Example (Sending a single SMS - Unicode):... 9.Net Code Example (Checking Balance):... 9 ABSTRACT: SMS4BD provides SMS gateway that is easily attachable to various platforms. We utilize the power of core HTTP Post request for integration, so naturally anyone from any platform can integrate it with their application. The detail of integration is explained later in this document along with code sample.

INTEGRATION STEPS: 1. Contact with SMS4BD and register an account in our website http://www.sms4bd.com. 2. Get the API for your desired platform (contact us to get this or download from our website). 3. Read the documentation to understand the integration process. 4. Host your code to communicate with our server. 5. After approval and payment we will add balance in your account. INTEGRATION TYPES: There are two types of integration for gateway. 1. Outgoing (Push service) 2. Incoming (Push pull service) OUTGOING SMS INTEGRATION: For outgoing SMS integration the required steps are as follows: 1. Collect your api public key and private key from your panel (Under settings-> Update personal info). 2. Add a masking request from your panel (Under Settings -> Maskings) 3. Wait for masking approval usually we approve within 24 hours but if you need it urgent, then you can contact us immediately. Masking should be within 11 characters and contain only alphanumeric characters. 4. You can buy credit for SMS anytime through bkash or bank transfer. 5. Write a code that uses our provided API for your platform. 6. Send SMS send request. 7. Receive response from the API and process it according to your need in your own application. INCOMING SMS INTEGRATION: For incoming SMS integration the required steps are as follows:

1. Add a keyword request from your panel (Under Settings -> Keywords) and there provide a URL where you will receive the SMS. 2. It may take up to 7 days to approve your keyword based on availability. 3. When we approve the keyword you can receive the SMS whenever some send SMS to 6969 using your keyword. OUTGOING SMS HTTP ENDPOINTS: The base address for the service is: http://www.sms4bd.net/http.svc/sendsms You can use HTTP GET calls to our endpoint to consume our web service. This is useful when you do not want to use our API or we do not provide API for your programming language platform. In this case you can use bare bone HTTP API to integrate and consume the service. Please make sure to use content type: "application/x-www-form-urlencoded" OUTGOING SMS HTTP PARAMETERS: The following table contains the HTTP parameters that we accept in our web service. If you use our API you don t need to use these though, as it will be handled by our API automatically. Name Signature Data Type Explanation Public Key publickey String Private Key privatekey String Sender / Masking sender String Receiver Mobile receiver String Message Body message String Delay In Seconds delay Integer Your account Public Key, found in your panel under settings Your account Private Key, found in your panel under settings The masking to be used. This masking needs to be preapproved. Apply for masking from panel under settings Mobile number to send SMS. Should start with country code. You can use + sign or can use the country code only. (i.e. +8801717570000) The SMS body that you want to send If you want to schedule the SMS for later delivery then set this

Type Of SMS type Integer value to total seconds that you want to delay the SMS. Do not use too large value to avoid overflow. The type of the SMS. For ASCII (Plain English SMS) set 1, for Unicode SMS set 8 OUTGOING MESSAGE DELIVERY STATUS: You can use the following codes to determine the status of the sent SMS. After you make SendSMS call, you to our HTTP endpoint, you will receive a string in return which may contain 2 or 3 elements separated by comma. If the Status of the SMS submission is Accepted then it will contain 3 elements, status code, status message and the reference id of the submission for future investigation or delivery report reception. If the status code is Rejected or anything else than Accepted, then there will be only 2 elements, the status code and the status message as the reference id is not available due to failure. Following is the table for various status codes. Code Message Explanation 0 None No status was decided yet. 1 Enroute 2 Delivered 3 Expired 4 Deleted The SMS was handed over to SMSC and waiting for delivery. Usually if there is long delay due to network traffic, this status can be received. In normal condition, you may not receive this status due to quick processing of SMS The message was successfully delivered to mobile. It was not possible to deliver the message to recipient. Possible reasons can be recipient out of network, turned off phone for long time or discontinued SIM The SMS was deleted from delivery. Possible reasons can be government policy change or instruction from regulatory board to do so. Can be applied during emergency situation.

5 Undeliverable 6 Accepted 7 Unknown 8 Rejected The network is unavailable for SMS transmission. We have received your SMS and submitted it to SMSC for delivery. Due to network error we couldn t determine the status. Your submission was rejected due to invalid data. It can be due to invalid username/password/masking/message. It can also be applied if your balance is low or recipient mobile number is invalid. OUTGOING MESSAGE DELIVERY STATUS EXAMPLE: Successful response: 6,Accepted,74461004-52c2-cad0-07bd-08d14e9f13df Failed response: 8,Rejected INCOMING OPERATION ENDPOINTS: For incoming SMS you have to provide us a keyword (3 to 4 alphanumeric characters) and a hit URL that we will call to get the return message from your end. We will send the reply to the Sender mobile automatically based on the response received from your hit URL. For example, if you provide us a keyword (if it is available): xyz And you provide us a URL: www.example.com/sendreply.php, If any user sends an SMS to 6969 with the following message: xyz balance 18383 We will hit your above url with the following post parameters: mobile, message. Here mobile will be: senders mobile number (for example, 8801758783.), message will be: xyz balance 18383. Please make sure that you have applied for the keyword from your panel under settings and it has been approved. We need around 7 working days to set this up for you. Also the keyword is subject to availability. Please feel free to contact us to get information if you face difficulty.

FEW IMPORTANT THINGS TO NOTE: For the gateway requests, all date times must be in UTC+0. If there is an API SDK available for your programming language then please use it instead of manual implementation as it can save lot of your time and efforts. HTTP API EXAMPLE (SENDING A SINGLE SMS): HTTP API is very quick and easy. The easiest and fastest way to send SMS will be to use the following URL format: You need to make a HTTP GET request in this URL. You need to replace 1, 2, 3, 4, 5, 6, 7 etc with actual value as explained in the above table in outgoing SMS HTTP parameter list. http://www.sms4bd.net/http.svc/sendsms?publickey=1&privatekey=2&sender=3& receiver=4&message=5&delay=6&type=7 HTTP API EXAMPLE (CHECKING BALANCE): HTTP API is very quick and easy. The easiest and fastest way to check balance will be to use the following URL format: You need to make a HTTP GET request in this URL. You need to replace 1, 2 etc with actual value as explained in the above table in outgoing SMS HTTP parameter list. http://www.sms4bd.net/http.svc/sendsms?publickey=1&privatekey=2

PHP CODE EXAMPLE (SENDING A SINGLE SMS): <?php namespace HttpSDK_SMS; require_once 'SMSClient.php'; $client = new SMSClient("publickey", "privatekey", "http://www.sms4bd.net"); $response = $client->sendsms("sms4bd", "8801717570000", "This is PHP", date('y-m-d H:i:s'), SMSType::ASCII); echo $response->statusmessage; PHP CODE EXAMPLE (CHECKING BALANCE): <?php namespace HttpSDK_SMS; require_once 'SMSClient.php'; $client = new SMSClient("publickey", "privatekey", "http://www.sms4bd.net"); $response = $client->getbalance(); echo $response;.net CODE EXAMPLE (SENDING A SINGLE SMS): using System; using HttpSDK.SMS; namespace SMS4BD.API.Tests public class NewAPITests public void SendSMSTest() SMSClient client = new SMSClient("publickey", "privatekey", "http://www.sms4bd.net"); SMSResponse result = client.sendsms("sms4bd", "8801717570000", "This is a test message.", DateTime.UtcNow, SMSType.ASCII); if (result.statuscode == 6) Console.WriteLine("Success:" + result.statusmessage); else Console.WriteLine("Fail:" + result.statusmessage);

.NET CODE EXAMPLE (SENDING A SINGLE SMS - UNICODE): using System; using HttpSDK.SMS; namespace SMS4BD.API.Tests public class NewAPITests public void SendSMSTest() SMSClient client = new SMSClient("publickey", "privatekey", "http://www.sms4bd.net"); SMSResponse result = client.sendsms("sms4bd", "8801717570000", "শ ক ন আহম দ ক খমনর বয়স ১৩ বছর ", DateTime.UtcNow, SMSType.UCS2); if (result.statuscode == 6) Console.WriteLine("Success:" + result.statusmessage); else Console.WriteLine("Fail:" + result.statusmessage);.net CODE EXAMPLE (CHECKING BALANCE): using System; using HttpSDK.SMS; namespace SMS4BD.API.Tests public class NewAPITests public void GetBalanceTest() SMSClient client = new SMSClient("publickey", "privatekey", "http://www.sms4bd.net"); double result = client.getbalance(); Console.WriteLine(result); Please contact info@sms4bd.com, or call +88 01833 316 571, +88 02 9822167 to consult and resolve integration issues. We are happy to help you.