Sender: MT2 - Mobile Technology Tomorrow
Date: Thursday, May 11, 2017
1. Introduction
This document describes the interface for sending SMS (text, unicode and binary). This interface is based on HTTP.
2. Basic parameters
Login Login of the account.Provided by MT2 INTERACTIF.
PWD Password of the account. Provided by MT2 INTERACTIF
orig MSISDN of the recipient
recipient SMS Short Code
coding Type of SMS. Defined types are :
txt : Text SMS
txtutf : Text SMS as unicode (To send arabic, chinese, ...)
bin : binary SMS (to send logos, ringtones, ...)
wappush : URL to be sent as a wap push
smsid Unique Id that represents the message.
userid Unique user id that represent the service
crweb Unique for each operator carrier
3. Sending text sms
data Text to send
Example :
http://?login=&pwd=&coding=txt&recipient=&data=hi&smsid=2215dw&crweb=2059&recipient=1025&userid=700
4. Sending unicode text SMS
data Text to send. as UTF16/UCS2 in hexadecimal format
Example :
Sending an arabic text :
http://?login=&pwd=&coding=txtutf&smsMsisdn=&data=064506460647064806490642&smsid=2215dw
5. Sending Binary sms
data Body of the binary SMS. This parameter can be repeated
data UDH of the binary SMS. This parameter can be repeated.
Example:
Sending a nokia ringtone :
http://?login=&pwd=&coding=txtutf&smsMsisdn=&binBody[0]=024A3A690DA185C1A50DA185C1BC041EB31ED35021039021039021038D21035021030D210513810815810815810815690813810811690824D40840E40840E40840E34840D40840C30830D4084144E040C935021039021039021038D21035021030C20C513810815810815810815690813810811690824E40840E40840E40840E&binUdh[0]=0B0504158100000003FA0201&binBody[1]=40840E40840E40840D40840D40840C3000&binUdh[1]=0B0504158100000003FA0202&smsid=2215dw
6. Sending a wap push
data url to be sent as a wap push
Example :
Sending a wap push to http://google.com
http://?login = &pwd= &coding=wappush&smsMsisdn=&data=www.google.com&smsid=13254ws
7. UserID
User identifying each shortcode/Application
8. Connection Detail
• URL: http://web.mt2.com.lb:2012/SendMT.aspx
Login Pwd Userid Recipient Crweb
Quest G!0b@l 791
QuestTest 2000 http://web.libancall.net:2012/SendMT.aspx?login=Quest&pwd=G!0b@l&orig=961xxxxxx&coding=txt&smsid=966&data=test&recipient=QuestTest&crweb=2000&userid=791
9. Http –Responses Positive Number: Success Message Error Messages:
• -1 Authentication Empty
• -2 Empty MO
• -3 Type error
• -4 sms type error
• -5 Data empty
• -11 Invalid Authentication
• -100 invalid senderID
• -111 Invalid User
• -1000 Global Error