ARTIO SMS Services HTTP API Documentation

Similar documents
ARTIO VM SMS Documentation

text2reach2 SMS API Sep 5, 2013 v1.1 This document describes application interface (API) between SMS service provider (SP) and SMS gateway (SMSGW).

Brain Corporate Bulk SMS

API USER GUIDE MARKETING MESSAGES & BROADCASTS

Connect Media Bulk SMS API Documentation

API Integration Guide

Redrabbit Cloud-based Communications Platform SMS APIs

API Spec Sheet For Version 2.5

Integration REST Text2Speech Version 1.1

SMS Gateway. API & Application Technical Documentation. Revision 1. Current as at 10 th August Document ID: DOC-SMS-API-R1

To SMS Technical Guide

API Spec Sheet For HLR v1.4

This file contains an excerpt from the character code tables and list of character names for The Unicode Standard, Version 3.0.

SMS Mobile Termination (MT) API Guide for HTTPS

API-SMS HTTP/POST Interface Ref Push SMS, Balance, ACKs. April 18, 2017 v2.15

SortMyBooks API (Application programming

Sending Job Requsition Data to Tenstreet API Guide (rev 09/2018)

InstaMember USER S GUIDE

Sending Documents to Tenstreet API Guide (rev 06/2017)

API. If you already done integration with Btc-e.com previously, it will be very easy task to use our API.

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

Sending Application Data to Tenstreet API Guide

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.

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

SMS Aggregation - API Documentation

Sending Data Updates to Tenstreet API Guide (rev 10/2017)

r v i e w o f s o m e r e c e n t d e v e l o p m

SMS GATEWAY API INTEGRATION GUIDE

Backup Gateway Documentation

API DOCUMENTATION INDODAX.COM

LIPNET OUTBOUND API FORMS DOCUMENTATION

WebADM and OpenOTP are trademarks of RCDevs. All further trademarks are the property of their respective owners.

News from the Wrapper

Cordless Phone DT570. User s Guide

API LEADFOX TECHNOLOGY INC. By Sébastien Lamanna. Created on January 6, 2016

Terry Carl Walker 1739 East Palm Lane Phoenix, AZ United States

API Documentation. Release Version 1 Beta

Remote API V1.1 Documentation

ONE SOCIAL. A Writing Project. Presented to. The Faculty of the Department of Computer Science. San José State University

PJ-600 Series Printer ESC/P Command Reference

HTTP API Specification V2.7

SharePoint Wiki Plus Getting Started

API-SMS HTTP/GET Interface Ref Push SMS, Balance, ACKs. April 18, 2017 v1.12

GSM GSM TECHNICAL March 1996 SPECIFICATION Version 5.1.0

Quenbec inc # henri bourassa H3L-3N3 Montreal, QC,Canada Toll free: Mobile

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

SMS API - Web Services with SSL SHA2 HMAC Version 1.7

Character Entity References in HTML 4 and XHTML 1.0

APPLESHARE PC UPDATE INTERNATIONAL SUPPORT IN APPLESHARE PC

SMS API TECHNICAL SPECIFICATION

XML API Developer-Documentation Version 2.01

GSM V7.0.0 ( )

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

Myriad Pro Light. Lining proportional. Latin capitals. Alphabetic. Oldstyle tabular. Oldstyle proportional. Superscript ⁰ ¹ ² ³ ⁴ ⁵ ⁶ ⁷ ⁸ ⁹,.

API HTTP TECHNICAL DOCUMENTATION WEB-BASED SMS SENDING PLATFORM. Version Update: July 12th Mobile Marketing and Messaging Solutions

Automatic system alerts on Primo or, How to respond to a system outage in your sleep

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

Motorola IT.6. Digital Cordless Telephone Mobile Connectivity with Bluetooth Wireless Technology. For IT.6.1, IT.6.2, IT.6.3 and IT.6.

Click 2 Call. All rights reserved to Voicenter Revision

mdput for mathematical typesetting with Adobe Utopia Paul Pichaureau January 29, 2006

SMS-Bulk Gateway HTTP interface

Banner 8 Using International Characters

API Technical Reference

Problems with FrameMaker 7 on MS Windows and non-western languages

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

KbdKaz 500 layout tables

HTTP Interface API. for SMS Services. Version 2. Claude ICT Poland Sp. z o. o.

One station Impact Printer. Model: WP-300 Version : 1.03

Service Segment Version 3

You 2 Software

Always there to help you. Register your product and get support at M110. Question? Contact Philips.

Extended user documentation

SMS+ Client User Manual

Personal Conference Manager (PCM)

Shopitem API A technical guide to the REST API for managing updates of shopitems

WhatsATool API - REST-Like Interface to WhatsATool Services

ETSI TS V4.2.0 ( )

Gatesms.eu Mobile Solutions for Business

SMS HTTP API DOCUMENTATION December 2012

! " # $ % & ' ( ) * +, -. / : ; < =

SMS Outbound. HTTP interface - v1.1

HTTP API-HELP DOCUMENT

The system has several front-end content discovery options. Here are examples of their interfaces (see more on our site at

Support for word-by-word, non-cursive handwriting

O Reilly Ebooks Your bookshelf on your devices!

Gengo API v1 / v1.1 Documentation

<tr><td>last Name </td><td><input type="text" name="shippingaddress-last-name"

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

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

SMS Submit Interface description HTTP Version 1.5

Yunpian API Documents

RESTful API. Documentation

Calligraphic Packing. Craig S. Kaplan. Computer Graphics Lab David R. Cheriton School of Computer Science University of Waterloo. GI'07 May 28, 2007

Before you start! : 1. It is important to know some things code, before starting the deal with this file.

Getting round your Mac with Shortcut Keys

3GPP TS V6.1.0 ( )

Message parameter details

Cartons (PCCs) Management

BUCKLEY. User s Guide

SharePoint Wiki Plus User Guide

Transcription:

ARTIO SMS Services HTTP API Documentation David Jozefov Michal Unzeitig Copyright 2013 - ARTIO International Co.

ARTIO SMS Services HTTP API Documentation ARTIO Publication date: 4.9.2013 Version: 1.0.1 Abstract This document describes the usage of ARTIO SMS Services HTTP API.

Table of Contents 1. Introduction... 1 2. Getting Started... 2 3. Usage... 3 3.1. Basic Request Format... 3 3.2. Supported Commands... 3 3.3. List of Error Codes... 6 A. SMS Messages Text Specification... 7 iii

Chapter 1. Introduction ARTIO SMS Services HTTP API allows developers to access functionality of ARTIO SMS Services programmatically using simple HTTP GET or POST requests. This document describes prerequisites needed to access the API and its usage. 1

Chapter 2. Getting Started Before you can use ARTIO SMS Services API, you first need to have a valid user account registered on ARTIO website. Then you need to log in to our website and activate ARTIO SMS Services. After the activation you will be assigned a unique API key which you can use along with your ARTIO username to access SMS Services API. 2

Chapter 3. Usage ARTIO SMS Services HTTP API is accessed using the HTTP protocol which makes it independant on the programming language you use. We will use PHP with curl extension in our examples below, but generally any language that has the ability to connect to remote server using TCP can be used. We will also use POST HTTP requests in our examples, but GET requests can be used as well. 3.1. Basic Request Format You can send commands to or request information from our API by sending HTTP requests to specific URL with some parameters. The main URL to contact our API is: http://www.artio.net/index.php?option=com_artiosms&controller=api Every command requires you to set at least the following three parameters: task username api_key The command to be processed by our API. See the next section 3.2 Supported Commands for the list of available commands with their parameters. Your ARTIO account username. Your ARTIO SMS Services account API key. You can find your API key in your ARTIO SMS Services Dashboard when you log in to ARTIO website. All parameters you send should be URL encoded. If you build and send your request correctly, our HTTP API will respond with a JSON encoded message. See JSON website or Wikipedia article for more information about JSON format syntax. The response message will be an object containing at least the following two properties: success err (boolean) - true if your request succeeded or false if there was some error encountered during processing your request. (integer) - numerical code of the error encountered. 0 if the request succeeded, positive number if failed. See section 3.3 List of Error Codes for the list of possible values and their meaning. In addition, the response object will also contain the msg property if your request failed, with a human readable message describing the error encountered. The response object can also contain properties specific to requested command with some information - for example when you request the current credit amount available for your account. 3.2. Supported Commands This section lists all the commands supported by ARTIO SMS Services HTTP API along with their parameters and response data. 3.2.1. get_credit_info Returns information about currently available credit amount for your account. Command parameters 3

Usage (none) Response properties credit exhaustion (float) - floating point value of currently available credit for your account. (integer) - numerical value of estimated time to your credit exhaustion in hours. This value is computed from the last 14 days activity of your account. Example code // Build POST request data string $post = 'task=get_credit_info&username=xxxxx&api_key=xxxxx'; // Send request $ch = curl_init('http://www.artio.net/index.php?option=com_artiosms&controller=api'); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $post); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $out = curl_exec($ch); curl_close($ch); // Decode JSON response into object $response = json_decode($out); 3.2.2. send_sms Sends SMS message from your account to specified phone number. Command parameters to text allowunicode src Recipient's phone number in international format (with country calling code) without leading plus symbol or zeroes. All non-numerical characters will be ignored. Text of your SMS message. There are certain limitations for the characters you can use that you must bear in mind. See SMS Messages Text Specification appendix for more information. Whether this SMS can be sent as Unicode if required. Allowed values for this parameter are 1 (allow) and 0 (don't allow). See SMS Messages Text Specification appendix for more information about Unicode SMS messages. [optional] Application that was used to send the SMS. This information is used only for statistics and debugging purposes and is not required. Response properties (none) Example code // Build POST request data string $post = 'task=send_sms&username=xxxxx&api_key=xxxxx&to=420123456789&text=this%20is%20a%20testing %20SMS&allowUnicode=1'; // Send request $ch = curl_init('http://www.artio.net/index.php?option=com_artiosms&controller=api'); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $post); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $out = curl_exec($ch); 4

Usage curl_close($ch); // Decode JSON response into object $response = json_decode($out); 3.2.3. send_own_sms Sends SMS message from your account to your own phone number specified in ARTIO SMS Services Configuration on ARTIO website. Command parameters text allowunicode src Text of your SMS message. There are certain limitations for the characters you can use that you must bear in mind. See SMS Messages Text Specification appendix for more information. Whether this SMS can be sent as Unicode if required. Allowed values for this parameter are 1 (allow) and 0 (don't allow). See SMS Messages Text Specification appendix for more information about Unicode SMS messages. [optional] Application that was used to send the SMS. This information is used only for statistics and debugging purposes and is not required. Response properties (none) Example code // Build POST request data string $post = 'task=send_own_sms&username=xxxxx&api_key=xxxxx&text=this%20is%20a%20testing %20SMS&allowUnicode=1'; // Send request $ch = curl_init('http://www.artio.net/index.php?option=com_artiosms&controller=api'); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $post); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $out = curl_exec($ch); curl_close($ch); // Decode JSON response into object $response = json_decode($out); 3.2.4. get_logs Returns last 50 logs stored for your account. Command parameters (none) Response properties data (array) - array of individual logs. Each log has the following properties: timestamp - the Unix timestamp in UTC time action - one letter code for specific action: S (SMS sent), E (SMS sending error), C (credit charge) 5

Usage Example code number - SMS recipient phone number credit - credit change, positive for credit charge action, negative for SMS sent action desc - detailed error message for SMS sending error // Build POST request data string $post = 'task=get_logs&username=xxxxx&api_key=xxxxx'; // Send request $ch = curl_init('http://www.artio.net/index.php?option=com_artiosms&controller=api'); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $post); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $out = curl_exec($ch); curl_close($ch); // Decode JSON response into object $response = json_decode($out); 3.3. List of Error Codes The table below lists all the possible error codes returned from ARTIO SMS Services HTTP API along with their description. Table 3.1. Possible error codes Error code Description 1 The username and API key you provided in your request are not valid. Either there's no SMS Services account created for given username, or the api_key is incorrect. 2 Your SMS Services account is currently disabled. Log in to ARTIO website to enable it again. 3 Your SMS Services account is currently paused. Log in to ARTIO website to resume it again. 4 Some parameters supplied for the specified command are missing or invalid. Check if you specified all the required parameters correctly. 5 SMS could not be sent. Either there's not enough credit left on your account, the recipient's phone number is invalid or there's some problem with the SMS gateway. 6

Appendix A. SMS Messages Text Specification Due to inner implementation of SMS messaging protocol, there are some limitations on the characters you can use and the length of the messages. Each SMS message can be transferred either as standard SMS or Unicode SMS. Standard SMS can contain following standard characters (SP stands for space) and extended characters: Table A.1. Standard SMS characters SP! " # % & ' ( ) * +, -. / 0 1 2 3 4 5 6 7 8 9 : ; < = >? A B C D E F G H I J K L M N O P Q R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z @ $ è é ù ì ò Ø ø Ç Å å Δ Φ Γ Λ Ω Π Ψ Σ Θ Ξ Æ æ ß É Ä Ö Ñ Ü ä ö ñ ü à _ Table A.2. Extended SMS characters ^ { } \ [ ] ~ One standard SMS message can contain up to 160 characters, but extended characters are counted as two characters each. If you need to use other characters in your SMS messages, the only other option is to send them as Unicode. Such SMS can contain any unicode characters (which is pretty much any character), but their length is limited to 70 characters only. Furthermore, you can also send longer messages split to multiple SMS. However, you are still limited to 3 messages length only and this feature decreases one message length by 7 characters. So split standard SMS can contain 153 characters each and split Unicode SMS only 63 characters each. This gives you a maximum length limit of 459 characters for standard SMS and 189 characters for Unicode SMS. Please note that each SMS will be charged separately, so a message split to 3 SMS will cost three times the price of a single SMS. If you are further interested in SMS protocol's inner workings, you can check this article on Wikipedia: http://en.wikipedia.org/wiki/gsm_03.38. 7