Documentation for the SMSWay API v1.5. API for SMSWay Gateway. Documentation for the SMSWay API v1.5. 2011 www.smsway.eu



Similar documents
Technical documentation

This document is to provide help and illustrations to users who wish to deliver SMS using the Pinnacle SMS Gateway via the HTTP Protocol.

GTX Mobile Messaging SMS Gateway Interface Simple HTTP API Manual

HTTP/SOAP Application Program Interface (API) Version 1.0

Spryng Making Business Mobile Mobile Terminated Premium SMS Gateway. Contents:

Webair CDN Secure URLs

Spryng Making Business Mobile (0) Spryng Headquarters: Herengracht BW Amsterdam - The Netherlands

HTTP Application Programming Interface

AMD Telecom SMS GATEWAY HTTP API INTERFACE. Technical Specifications

Messaging API. API Specification Document Messaging API. Functionality: Send SMS Messages.

MSDG Services Integration Document Draft Ver 1.2

Technical Specification Normal SMS gateway

AS DNB banka. DNB Link specification (B2B functional description)

Server and Direct Shared Protocols

Advanced HTTP API Documentation

MONETA.Assistant API Reference

THE CHALLENGE OF ADMINISTERING WEBSITES OR APPLICATIONS THAT REQUIRE 24/7 ACCESSIBILITY

IoT-Ticket.com. Your Ticket to the Internet of Things and beyond. IoT API

Magensa Services. Administrative Account Services API Documentation for Informational Purposes Only. September Manual Part Number:

FTP API Specification V2.6

GSM. Quectel Cellular Engine. HTTP Service AT Commands GSM_HTTP_ATC_V1.2

Online signature API. Terms used in this document. The API in brief. Version 0.20,

ipayment Gateway API (IPG API)

USING MYWEBSQL FIGURE 1: FIRST AUTHENTICATION LAYER (ENTER YOUR REGULAR SIMMONS USERNAME AND PASSWORD)

MAIL1CLICK API - rel 1.35

Appendix. Web Command Error Codes. Web Command Error Codes

Fairsail REST API: Guide for Developers

HTTP Reverse Proxy Scenarios

PHP Integration Kit. Version User Guide

Secure XML API Integration Guide. (with FraudGuard add in)

COMMERCIAL-IN-CONFIDENCE

MyMobileAPI. mymobileapi.com

HireDesk API V1.0 Developer s Guide

SRFax Fax API Web Services Documentation

Diafaan SMS Server 3.0 Manual Diafaan communication software

iyzico one-off payment and installment easy payment integration

Safeguard Ecommerce Integration / API

Contents. 2 Alfresco API Version 1.0

UFTP AUTHENTICATION SERVICE

Order Notifications - reporting a payment status

QIWI Wallet Pull Payments API

MXSAVE XMLRPC Web Service Guide. Last Revision: 6/14/2012

BulkSMS API Document. Contents. 1 P a g e. API Version: 5.9 Document Version: 2.0 Last Updated Date: 31st July 2013

SVEA HOSTED SERVICE SPECIFICATION V1.13

VoxStack GSM Gateway API. Version: Author: Joe.Yung

Credomatic Integration Resources. Browser Redirect API Documentation June 2007

This Annex uses the definitions set out in the Agreement on service of payment cards on the Internet (hereinafter the Agreement).

This document outlines the backend specifications of the CITI Program Single Sign On Portal.

Audi Virtual Payment Client Integration Manual

Databricks Cloud Platform Native REST API 1.0

Batch Processing. Specification. Version SIX Payment Services

SmarterMeasure Inbound Single Sign On (SSO) Version 1.3 Copyright 2010 SmarterServices, LLC / SmarterServices.com PO Box , Deatsville, AL 36022

Jobs Guide Identity Manager February 10, 2012

Easy CollECt and the transaction ManagEr interface

Technical Specification ideal

Three Step Redirect API V2.0 Patent Pending

Nokia for Business. Nokia and Nokia Connecting People are registered trademarks of Nokia Corporation

Application Security Testing. Generic Test Strategy

Setting up single signon with Zendesk Remote Authentication

Technical Specification Premium SMS gateway

Internet Payment Gateway Response Codes

InternetVista Web scenario documentation

Smart Card Authentication. Administrator's Guide

SIM Configuration Guide. February 2015 Version 1 Document Reference: 8127

PHP Tutorial From beginner to master

Documentation to use the Elia Infeed web services

Forms Printer User Guide

e-filing Secure Web Service User Manual

Error and Confirmation Codes

JobScheduler Web Services Executing JobScheduler commands

A BETTER WAY TO PAY Unified Merchants API (UMAPI).Net Integration Manual

Process Transaction API

Integrating Fax Sending Services

The Vetuma Service of the Finnish Public Administration SAML interface specification Version: 3.5

White Paper BMC Remedy Action Request System Security

Moscow Exchange Fix protocol specifications for OTC trades report system (OTC-monitor)

Monitoring Agent for Microsoft Exchange Server Fix Pack 9. Reference IBM

MiGS Virtual Payment Client Integration Guide. July 2011 Software version: MR 27

PHP Authentication Schemes

SMTP-32 Library. Simple Mail Transfer Protocol Dynamic Link Library for Microsoft Windows. Version 5.2

Cite My Data M2M Service Technical Description

Assistant Enterprise. User Guide

Nokia and Nokia Connecting People are registered trademarks of Nokia Corporation

MERCHANT INTEGRATION GUIDE. Version 2.8

E*TRADE Developer Platform. Developer Guide and API Reference. October 24, 2012 API Version: v0

Clickatell two-way technical guide v2.0

Direct Payment Protocol Errors A Troubleshooter

Bank link technical specifications. Information for programmers

SAML Single-Sign-On (SSO)

Web Services Credit Card Errors A Troubleshooter

Enterprise Toolbar User s Guide. Revised March 2015

Information on SMS interface (As at March 31 th 2009) Delivery is possible to both mobile subscribers worldwide and the German fixed network

How To Upgrade To Symantec Mail Security Appliance 7.5.5

TCP/IP Networking, Part 2: Web-Based Control

BPMonline CRM + Service Desk Agent Desktop User Guide

ResellerPlus - Bulk Http API Specification. (This Document gives details on how to send messages via the Bulk HTTP API for the RouteSms SMPP System)

Transcription:

API for SMSWay Gateway

Table of contents 1. Introduction... 3 1.1 How to start... 3 2. Single SMS Message sending... 3 3. Callback procedure delivery confirmation status... 4 4. Checking the account balance... 6 5. Examples... 7 5.1 Sending single message in PHP (with curl extension)... 7 5.2 Sending single message in PHP (without curl extension)... 8 5.3 Callback report collecting in PHP... 8 5.4 Sending single message in other languages... 8 6. Free support... 9

1. Introduction SMSWay is a high quality SMS platform which enables you to integrate any of your applications with our SMS message sending system. The main advantage of our system is its simplicity of implementation. The SMS message can have your company name or any phone number that you owns. Every message sent in our system has its own unique id which allows you to receive its delivery confirmation. 1.1 How to start To start using SMSWay API you need to register and create an account on our website. Registration is completely free. Your account is ready to use just after you register. URL : http://www.smsway.eu 2. Single SMS Message sending Méthode HTTP : GET / POST http://api.smsway.eu/manage.php Parameters apikey (apikey) Your personal api-key (available in your SMSWay account). Strictly confidential. num (string) Phone number of the recipient (in international format, without + or 00) content (string) Content of your SMS message. The maximal message length is set to 457. In case of a long SMS message (more than 160 chars), our system will automatically divide it into several single messages and charge them. messages. The divided messages then will be sent and delivered to the recipient s phone as a Optional parameters single SMS. from (string) SenderID (11 alphanumerical characters maximum) hlr (yes-no) HLR Lookup before sending (check recipient number). + EUR 0.01 incl. VAT msgid (string) Optional custom value sent with SMS (ex:123). Max 50 chars. encoding (string) You can set different encoding of messages. Available encodings types are: UTF-8, UTF7-IMAP, ISO-8859-1, ASCII, EUC-JP, SJIS (case sensitive). Return codes sended ERR_01 ERR_02 ERR_03 ERR_04 ERR_05 ERR_06 Message successfully acknowledged Invalid apikey Invalid recipient Not enough money on SMSWay account Empty SMS content Service unavailable (server side error) Unknown error The result of each sent is available in your SMSWay account.

3. Callback procedure delivery confirmation status We offer you a possibility to run any available script in the web with callback delivery report. In order to use this option please log in on your SMSWay account and set the «Callback URL» under «My Account» tab. Example : http://www.mypage.com/status_update.php We suggest you to check the correctness of your script address before its submission. When this request is called, the system will respond and pass to your script all parameters needed for delivery confirmation (GET method is used). Return GET variables msgid (int) Optional custom value sent with SMS (ex:123) provided while calling the API status (int) Status code num (string) Phone number of the recipient (in international format, without + or 00) timesent (timestamp) Time (unix) on of the message when its sent timereceived (timestamp) Time (unix) of delivery report cost (int) Price per SMS (in EURO, incl. VAT) *All characters are case sensitive. Status codes (status GET variable) 100 Delivered 1 Rejected: Message length is invalid 2 Subscriber absent 3 Device memory capacity exceeded 4 Equipment protocol error 5 Equipment not supported 6 Equipment not SM equipped 7 Unknown service centre 8 Service centre congestion 9 Undeliverable 10 Rejected: Invalid source address 11 Invalid destination address 12 Illegal subscriber 13 Teleservice not provisioned 14 Illegal equipment 15 Call barred 16 Facility not supported 17 Subscriber busy for SM 18 System failure 19 Message waiting, list full 20 Data missing

21 Unexpected data value 22 Resource limitation 23 Initiating release 24 Unknown alphabet 25 USSD busy 26 Duplicated invoke ID 27 No supported service 28 Mistyped parameter 29 Unexpected response from peer 30 Service completion failure 31 No response from peer 32 Invalid response received 34 Invalid destination 49 Message type not supported 50 Destination blocked for sending 51 Not enough money 52 No price 67 Invalid esm_class field data 69 Rejected by SMSC 72 Rejected: Invalid source address TON 73 Rejected: Invalid source address NPI 80 Rejected: Invalid destination address TON 81 Rejected: Invalid destination address NPI 88 Throttling error 401 Invalid ID 402 Message expired 403 Message acknowledged 409 Queued 900 Unknown error

4. Incoming SMS Message Callback We offer you a possibility to run any available script in the web with incoming messages. In order to use this option please log in on your SMSWay account and set the «Callback URL for Incoming Messages» under «My Account» tab. Example : http://www.mypage.com/incoming_record.php The URL must begin with either http:// (non-encrypted) or https:// (encrypted). The SMSWay server sends HTTP GET queries to your URL with the variables listed below. Return GET variables msgid (int) A unique ID assigned to an incoming message. sender (int) The sender s phone number / senderid dest (string) Phone number of the recipient message (string) The message s text, in the UTF-8 character set. timestamp (timestamp) The time of receiving the message, in Unix time format. *All characters are case sensitive. 5. Checking the account balance Our customers can check their current account balance by using the balance script. In order to use the script, the users have to provide their apikey at the following URL: http://api.smsway.eu/manage.php?action=balance&apikey=************* If the user credentials have been authenticated, the script will return the balance. If some of the details are incorrect, the script will return the error message accordingly. The following are the error messages which can be returned by the script: ERR_01 empty or invalid apikey ERR_05 server side error

6. Examples 6.1 Sending single message in PHP (with curl extension) <? // config $apikey = "*************"; // your personal api-key $num = "32488112233"; // destination number in international format $content = "Hello World!"; // SMS content, 457 characters max $from = ""; // senderid of SMS, max 11 alphanumeric characters $hlr = "no"; // (yes-no) number verification before sending (EUR 0.01 incl. VAT) $msgid = ""; // Optional custom value sent with SMS (ex:123) $encoding = ""; // Encoding of message content. UTF-8, UTF7-IMAP, ISO-8859-1, ASCII, EUC-JP, SJIS // exec $url = "http://api.smsway.eu/manage.php?apikey=".urlencode($apikey)."&content=".u rlencode($content)."&num=".$num."&from=".$from."&hlr=".$hlr."&msgid=".$msgid."&en coding=".$encoding; $session = curl_init($url); curl_setopt($session, CURLOPT_URL,$url); curl_setopt($session, CURLOPT_RETURNTRANSFER,true); curl_setopt($session, CURLOPT_POST, false); curl_setopt($session, CURLOPT_HEADER, false); curl_setopt($session, CURLOPT_TIMEOUT,120); curl_setopt ($session, CURLOPT_FRESH_CONNECT, true); curl_setopt ($session, CURLOPT_SSL_VERIFYPEER,false); curl_setopt ($session, CURLOPT_SSL_VERIFYHOST,false); $response = curl_exec($session); curl_close($session); // result if ($response=="sended") echo "SMS ok"; else echo $response;?>

6.2 Sending single message in PHP (without curl extension) <? // config $apikey = "*****************"; // your personal api-key $num = "32488112233"; // destination number in international format $content = "Hello World!"; // SMS content, 457 characters max $from = ""; // senderid of SMS, max 11 alphanumeric characters $hlr = "no"; // (yes-no) number verification before sending (EUR 0.01 incl. VAT) $msgid = ""; // Optional custom value sent with SMS (ex:123) $encoding = ""; // Encoding of message content. UTF-8, UTF7-IMAP, ISO-8859-1, ASCII, EUC-JP, SJIS // exec $url = "http://api.smsway.eu/manage.php?apikey=".urlencode($apikey)."&content=".u rlencode($content)."&num=".$num."&from=".$from."&hlr=".$hlr."&msgid=".$msgid."&en coding=".$encoding; $response = file($url); // response if ($response[0]=="sended") echo "SMS ok"; else echo $response[0];?> 6.3 Callback report collecting in PHP <?php // If SMS was sent with msgid parameter, callback will return it in variable $_GE T["msgid"] $msgid=$_get["msgid"]; $status=$_get["status"]; $number=$_get["number"]; $timereceived=$_get["timereceived"]; $timesent=$_get["timesent"]; $cost=$_get["cost"]; if($_get["msgid"] && $_GET["status"] ) { ' mysql_query("update sms SET sms_status = '".$status."', sms_cost = '".$cost." WHERE sms_id = '".$msgid."' LIMIT 1"); echo "OK"; }?> 6.4 Sending single message in other languages This application is also available with other languages (PERL, ASP, etc.) : the URL and parameters stay the same, it s up to you to code with your favorite language!

7. Free support If you have any further questions, contact the free support of SMSWay. Website : www.smsway.eu E-mail : support@smsway.eu Hotline : +32-2-888-60-30