SlideShare uma empresa Scribd logo
1 de 8
Baixar para ler offline
HTTP Interface Specification
Version 1.0
This document is intended for application developers with knowledge about the HTTP protocol.
Document history
Version Description
1.0 First release
2.0 New Movitext Look and Feel
1. Introduction
Movitext Messaging Platform (MMP) enables users to send message to and receive
messages from mobile devices.
Outbound (mobile terminated) messages are sent from a Customer Application (Client) to
MP using Hypertext Transfer protocol (HTTP).
Inbound (mobile originated) messages are sent from MMP to Customer Server (Server)
using HTTP.
Each message consists of a number of parameters sent as form parameters using HTTP
POST or HTTP GET operations. POST is the recommended method since GET operations
can be limited in size and may be truncated by browsers or intermediate proxies.
MMP supports HTTP 1.0 and HTTP 1.1 with persistent connections.
1.1. URL encoding
All requests must be properly “URL encoded” as per RFC 1738. Since URLs can only
include a limited set of characters (“A-Z”, “a-z”, “0-9”, “$-_.+!*'(),") all other characters
needs to be properly escaped. There are utility classes that help the developer with this in
most languages including Java, Perl, PHP and .NET.
Please note that source and destination addresses should never include a leading “+”
character and also that a “+” in a URL is actually an “escaped” SPACE.
1.2. Addresses
Source and destination addresses (senders and recipients) are usually numeric
international GSM numbers starting with country code, without leading zeros or plus
signs. It is also possible to use alphanumeric source addresses which can be a maximum
of 11 characters in the GSM network. Only use characters A-Z, a-z, 0-9 and space for best
result.
1.3. Delivery reports (DLRs)
When a message is sent to MMP it is not known whether it can be delivered or not.
However, it is possible to request a delivery report (using the parameter DLR=1) which will
be submitted from MMP to Server when the final status for the message has been
reached. A DLR is structured as any other message but has a special message type set, it
will also contain a reference to the id of the original message.
2. Client to Movitext Messaging Platform (sending)
This section describes how to send requests from the Client Application (Client) to the
Movitext Messaging Platform (MMP) and the possible responses to such requests.
The Client issues a HTTP GET or POST request to the MMP using a specific URL. The MMP
issues back a response which completes the transaction. Please note that the MMP
response can either be an HTTP error code or a HTTP OK (200) in which case the returned
response body will contain further information.
The Client supplies a number of parameters to the MMP.
2.1. Submit message
2.1.1. Request parameters
Parameters are found in section 4, “Parameter reference”.
2.1.2. Example sending text message
Username: user1
Password: secret
Destination address: +46-70-123456
Message: ”Hello world”
http://sms.example.com:9011/bin/send?USERNAME=user1&PASSWORD=verysecret&
DESTADDR=4670123456&MESSAGE=Hello+world
2.1.3. Example sending binary message
Username: user1
Password: secret
Destination address: +46-70-123456
Message: 0x41 0x42 0x43 0x4a
http://sms.example.com:9011/bin/send?USERNAME=user1&PASSWORD=verysecret&
DESTADDR=4670123456&CHARCODE=2&MESSAGE=4142434A
2.1.4. Example sending binary message with UDH
Username: user1
Password: secret
Destination address: +46-70-123456
UDH: 0x06 0x05 0x04 0x0b 0x84 0x23 0xf0 (WAP push)
Message: 0x41 0x42 0x43 0x4a (not a valid message only to illustrate example)
http://sms.example.com:9011/bin/send?USERNAME=user1&PASSWORD=verysecret&
DESTADDR=4670123456&CHARCODE=2&UDHI=1&MESSAGE=0605040B8423F04142
434A
2.2. Responses
Responses from the Mobile SV Platform are HTTP responses which contain a status code
which is either 200 (OK) or an error code. If HTTP status is OK then the response body
includes further status information for the operation.
Response body include two or, optionally, three lines:
1. Contains the assigned message id, a numeric value, or -1 if the request failed.
2. Contains the status code, 0 for success or otherwise a numeric value other than 0
indicating what error occurred. Error codes: 1 – Unkown error, 2 – Syntax error,
mandatory parameter missing, 10 – Access denied, 11 – Invalid message, 16 – No
message credits left
3. If present, contains a text describing the error that occurred.
2.2.1. Example: Response indicating success
124365
0
OK
2.2.2. Example: Response indicating failure
-1
2
Recipient (DESTADDR) is missing
3. Movitext Messaging Platform to Client (receiving)
This section describes requests that are sent from the Movitext Messaging Platform
(MMP) to the Customer Server and how the Server should respond. Such requests are sent
when incoming (Mobile-Originated) messages are received and forwarded to the
customer. Same type of requests are used for Delivery Reports (DLRs).
MMP issues a HTTP POST request to the Server using a specific URL. The Server must
respond with a HTTP OK (200), body should be empty and will be ignored.
MMP will supply a number of parameters. Parameters are found in section 4, “Parameter
reference”.
Typical parameters for request containing message: ID, SOURCEADDR,
SOURCEADDRTON, SOURCEADDRNPI, DESTADDR, MESSAGE, VP
Typical parameters for request containing DLR: ID, DLRID, SOURCEADDR, DESTADDR,
STATUS, MSGTYPE, MESSAGE, VP
4. Parameter reference
Below the most common request parameters are listed. Other additional parameters may
be present in requests. The rightmost column describes whether parameter is used for
sending or receiving messages/DLRs.
Parameter Description Mandatory - M
Optional - O
Send - S
Receive - R
USERNAME Username for MMP account M S
PASSWORD Password for MMP account M S
ID Message id M R
ORIGID Original message id
Only used for SAT when a reply
to a previously sent message is
received
M (SAT replies) R
DESTADDR Destination address (recipient)
MSISDN should be on
international format starting with
country code. Example:
4670123456
M S,R
SOURCEADDR Source address (sender)
Alphanumeric senders can be a
maximum of 11 characters
according to GSM spec only
A-Z, a-z, 0-9 and space should be
used
O S,R
SOURCEADDRTON Type of Number (TON) for source
address
Values:
0 Unknown
1 International (default)
5 Alphanumeric
O S,R
SOURCEADDRNPI Numbering Plan Indicator (NPI)
for source address
Should not be set when sending
messages where it will default to
1.
O S,R
DESTADDRTON Type of Number (TON) for
destination address
Should not be set when sending
O S,R
messages where it will default to
1 (international number).
DESTADDRNPI Numbering Plan Indicator (NPI)
for destination address
Should not be set when sending
messages where it will default to
1.
O S,R
CHARCODE Message encoding
Values:
0 (GSM text, default
also used for ISO-8859-15
when conversion enabled for
account)
2 (Binary, 8-bit)
4 (UCS2, Unicode 16-bit)
O S,R
MESSAGE Message data
Format depends on message
type. For GSM text messages
data is URL encoded. For binary
or UCS2 messages data must be
hex encoded.
M (messages)
O (DLRs)
S,R
MSGTYPE Message type
1 Normal
5 DLR
M (DLRs only) R
DLR Request DLR
Set to “1” to request that a
delivery report (DLR) be sent back
O S
DLRID Original message id for DLRs
When a DLR is received this
parameter will contain the id of
the original message it refers to
M (DLRs only) R
STATUS Status
Indicates status of message
1 – Delivered
2 – In process
3 – Failed
4 – Deleted
5 – Expired
6 – Rejected
7 – Canceled
8 – Queued
9 – Orphaned
M (DLRs only) R
10 – Relayed
11 – Unknown
KEYWORD First word in message O R
VP Validity Period
Indicates how long (in seconds) a
message will be stored for
delivery before it will be expired
O S,R
UDHI User Data Header (UDH)
Indicator
When set to non-zero value,
specifies that UDH is present in
the message body.
O S
SOURCEPORT Source port
Numeric value, 0 – 65535
This information will be added to
UDH.
O S
DESTPORT Destination port
Numeric value, 0 – 65535
This information will be added to
UDH.
O S
CONCATSMSREF For concatenated messages
Specifies a numeric reference
number, 0 – 255
Not needed to send long
messages.
O S,R
CONCATSMSSEQ For concatenated messages
Specifies sequence number for
this message part
Not needed to send long
messages.
O S,R
CONCATSMSMAX For concatenated messages
Specifies total number of parts
for this message
Not needed to send long
messages.
O S,R

Mais conteúdo relacionado

Mais procurados

Solution against BGP vulnerabilities
Solution against BGP vulnerabilitiesSolution against BGP vulnerabilities
Solution against BGP vulnerabilitiesiosrjce
 
PERFORMANCE ANALYSIS OF SHA-2 AND SHA-3 FINALISTS
PERFORMANCE ANALYSIS OF SHA-2 AND SHA-3 FINALISTSPERFORMANCE ANALYSIS OF SHA-2 AND SHA-3 FINALISTS
PERFORMANCE ANALYSIS OF SHA-2 AND SHA-3 FINALISTSijcisjournal
 
Computer Communication Networks- Introduction to Transport layer
Computer Communication Networks- Introduction to Transport layerComputer Communication Networks- Introduction to Transport layer
Computer Communication Networks- Introduction to Transport layerKrishna Nanda
 
AODV Improvement by Modification at Source Node and Securing It from Black Ho...
AODV Improvement by Modification at Source Node and Securing It from Black Ho...AODV Improvement by Modification at Source Node and Securing It from Black Ho...
AODV Improvement by Modification at Source Node and Securing It from Black Ho...IJERA Editor
 
Application layer
Application layerApplication layer
Application layerreshmadayma
 

Mais procurados (7)

Solution against BGP vulnerabilities
Solution against BGP vulnerabilitiesSolution against BGP vulnerabilities
Solution against BGP vulnerabilities
 
PERFORMANCE ANALYSIS OF SHA-2 AND SHA-3 FINALISTS
PERFORMANCE ANALYSIS OF SHA-2 AND SHA-3 FINALISTSPERFORMANCE ANALYSIS OF SHA-2 AND SHA-3 FINALISTS
PERFORMANCE ANALYSIS OF SHA-2 AND SHA-3 FINALISTS
 
SOA web services concepts
SOA web services conceptsSOA web services concepts
SOA web services concepts
 
Computer Communication Networks- Introduction to Transport layer
Computer Communication Networks- Introduction to Transport layerComputer Communication Networks- Introduction to Transport layer
Computer Communication Networks- Introduction to Transport layer
 
AODV Improvement by Modification at Source Node and Securing It from Black Ho...
AODV Improvement by Modification at Source Node and Securing It from Black Ho...AODV Improvement by Modification at Source Node and Securing It from Black Ho...
AODV Improvement by Modification at Source Node and Securing It from Black Ho...
 
Application layer
Application layerApplication layer
Application layer
 
Ijctt v7 p111
Ijctt v7 p111Ijctt v7 p111
Ijctt v7 p111
 

Semelhante a Movitext http interface specification

Whatsapp Business API Solution
Whatsapp Business API SolutionWhatsapp Business API Solution
Whatsapp Business API SolutionRouteMob
 
Dictributed application by Waqas
Dictributed application by WaqasDictributed application by Waqas
Dictributed application by WaqasWaqas !!!!
 
Distributedapplications
DistributedapplicationsDistributedapplications
DistributedapplicationsWaqas !!!!
 
DIAMETER_EFORT_ENG.pdf
DIAMETER_EFORT_ENG.pdfDIAMETER_EFORT_ENG.pdf
DIAMETER_EFORT_ENG.pdfAbubakar416712
 
Mobile Messaging - Part 5 - Mms Arch And Transactions
Mobile Messaging  - Part 5 - Mms Arch And TransactionsMobile Messaging  - Part 5 - Mms Arch And Transactions
Mobile Messaging - Part 5 - Mms Arch And TransactionsGwenaël Le Bodic
 
HTTP/2 - Differences and Performance Improvements with HTTP
HTTP/2 - Differences and Performance Improvements with HTTPHTTP/2 - Differences and Performance Improvements with HTTP
HTTP/2 - Differences and Performance Improvements with HTTPAmit Bhakay
 
10 Slides to SMS
10 Slides to SMS10 Slides to SMS
10 Slides to SMSseanraz
 
10 Slides to SMS
10 Slides to SMS10 Slides to SMS
10 Slides to SMSseanraz
 
허준환 One m2m-protocol binding
허준환   One m2m-protocol binding허준환   One m2m-protocol binding
허준환 One m2m-protocol bindingJunHwan Huh
 
Web services for developer
Web services for developerWeb services for developer
Web services for developerRafiq Ahmed
 
10 slides sms
10 slides sms10 slides sms
10 slides smsAnh Tuan
 
Sql server lesson11
Sql server lesson11Sql server lesson11
Sql server lesson11Ala Qunaibi
 
IRJET- Secure Email Software using e-SMTP
IRJET- Secure Email Software using e-SMTPIRJET- Secure Email Software using e-SMTP
IRJET- Secure Email Software using e-SMTPIRJET Journal
 
IRJET- Secure Email Software using e-SMTP
IRJET-  	  Secure Email Software using e-SMTPIRJET-  	  Secure Email Software using e-SMTP
IRJET- Secure Email Software using e-SMTPIRJET Journal
 

Semelhante a Movitext http interface specification (20)

Whatsapp Business API Solution
Whatsapp Business API SolutionWhatsapp Business API Solution
Whatsapp Business API Solution
 
MUTHOFUN BULK SMS API Documentation
MUTHOFUN BULK SMS API DocumentationMUTHOFUN BULK SMS API Documentation
MUTHOFUN BULK SMS API Documentation
 
STUN protocol
STUN protocolSTUN protocol
STUN protocol
 
SMS
SMSSMS
SMS
 
Dictributed application by Waqas
Dictributed application by WaqasDictributed application by Waqas
Dictributed application by Waqas
 
Distributedapplications
DistributedapplicationsDistributedapplications
Distributedapplications
 
DIAMETER_EFORT_ENG.pdf
DIAMETER_EFORT_ENG.pdfDIAMETER_EFORT_ENG.pdf
DIAMETER_EFORT_ENG.pdf
 
Mobile Messaging - Part 5 - Mms Arch And Transactions
Mobile Messaging  - Part 5 - Mms Arch And TransactionsMobile Messaging  - Part 5 - Mms Arch And Transactions
Mobile Messaging - Part 5 - Mms Arch And Transactions
 
HTTP/2 - Differences and Performance Improvements with HTTP
HTTP/2 - Differences and Performance Improvements with HTTPHTTP/2 - Differences and Performance Improvements with HTTP
HTTP/2 - Differences and Performance Improvements with HTTP
 
10 Slides to SMS
10 Slides to SMS10 Slides to SMS
10 Slides to SMS
 
10 Slides to SMS
10 Slides to SMS10 Slides to SMS
10 Slides to SMS
 
허준환 One m2m-protocol binding
허준환   One m2m-protocol binding허준환   One m2m-protocol binding
허준환 One m2m-protocol binding
 
Web services for developer
Web services for developerWeb services for developer
Web services for developer
 
10 slides sms
10 slides sms10 slides sms
10 slides sms
 
Sql server lesson11
Sql server lesson11Sql server lesson11
Sql server lesson11
 
T3UC_PresentationT3UC2012_Rajesh
T3UC_PresentationT3UC2012_RajeshT3UC_PresentationT3UC2012_Rajesh
T3UC_PresentationT3UC2012_Rajesh
 
Cn u5
Cn u5Cn u5
Cn u5
 
SOAP WEB TECHNOLOGIES
SOAP WEB TECHNOLOGIESSOAP WEB TECHNOLOGIES
SOAP WEB TECHNOLOGIES
 
IRJET- Secure Email Software using e-SMTP
IRJET- Secure Email Software using e-SMTPIRJET- Secure Email Software using e-SMTP
IRJET- Secure Email Software using e-SMTP
 
IRJET- Secure Email Software using e-SMTP
IRJET-  	  Secure Email Software using e-SMTPIRJET-  	  Secure Email Software using e-SMTP
IRJET- Secure Email Software using e-SMTP
 

Mais de Movitext

Movitext web2 sms
Movitext web2 smsMovitext web2 sms
Movitext web2 smsMovitext
 
Universidades
UniversidadesUniversidades
UniversidadesMovitext
 
Datos del sms
Datos del smsDatos del sms
Datos del smsMovitext
 
Campaña efectiva
Campaña efectivaCampaña efectiva
Campaña efectivaMovitext
 

Mais de Movitext (6)

Movitext web2 sms
Movitext web2 smsMovitext web2 sms
Movitext web2 sms
 
Universidades
UniversidadesUniversidades
Universidades
 
Remesas
RemesasRemesas
Remesas
 
Política
PolíticaPolítica
Política
 
Datos del sms
Datos del smsDatos del sms
Datos del sms
 
Campaña efectiva
Campaña efectivaCampaña efectiva
Campaña efectiva
 

Último

(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingNeil Barnes
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
BPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptx
BPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptxBPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptx
BPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptxMohammedJunaid861692
 
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiVIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiSuhani Kapoor
 
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Callshivangimorya083
 
Log Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxLog Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxJohnnyPlasten
 
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfLars Albertsson
 
FESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfFESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfMarinCaroMartnezBerg
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAroojKhan71
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...Delhi Call girls
 
Invezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz1
 
Mature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxMature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxolyaivanovalion
 
BabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxBabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxolyaivanovalion
 
B2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxB2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxStephen266013
 

Último (20)

(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data Storytelling
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
BPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptx
BPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptxBPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptx
BPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptx
 
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiVIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
 
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
 
Log Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxLog Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptx
 
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdf
 
FESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfFESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdf
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
 
Sampling (random) method and Non random.ppt
Sampling (random) method and Non random.pptSampling (random) method and Non random.ppt
Sampling (random) method and Non random.ppt
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
 
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in Kishangarh
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in  KishangarhDelhi 99530 vip 56974 Genuine Escort Service Call Girls in  Kishangarh
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in Kishangarh
 
Invezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signals
 
Mature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxMature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptx
 
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
 
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
 
BabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxBabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptx
 
B2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxB2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docx
 

Movitext http interface specification

  • 1. HTTP Interface Specification Version 1.0 This document is intended for application developers with knowledge about the HTTP protocol.
  • 2. Document history Version Description 1.0 First release 2.0 New Movitext Look and Feel
  • 3. 1. Introduction Movitext Messaging Platform (MMP) enables users to send message to and receive messages from mobile devices. Outbound (mobile terminated) messages are sent from a Customer Application (Client) to MP using Hypertext Transfer protocol (HTTP). Inbound (mobile originated) messages are sent from MMP to Customer Server (Server) using HTTP. Each message consists of a number of parameters sent as form parameters using HTTP POST or HTTP GET operations. POST is the recommended method since GET operations can be limited in size and may be truncated by browsers or intermediate proxies. MMP supports HTTP 1.0 and HTTP 1.1 with persistent connections. 1.1. URL encoding All requests must be properly “URL encoded” as per RFC 1738. Since URLs can only include a limited set of characters (“A-Z”, “a-z”, “0-9”, “$-_.+!*'(),") all other characters needs to be properly escaped. There are utility classes that help the developer with this in most languages including Java, Perl, PHP and .NET. Please note that source and destination addresses should never include a leading “+” character and also that a “+” in a URL is actually an “escaped” SPACE. 1.2. Addresses Source and destination addresses (senders and recipients) are usually numeric international GSM numbers starting with country code, without leading zeros or plus signs. It is also possible to use alphanumeric source addresses which can be a maximum of 11 characters in the GSM network. Only use characters A-Z, a-z, 0-9 and space for best result. 1.3. Delivery reports (DLRs) When a message is sent to MMP it is not known whether it can be delivered or not. However, it is possible to request a delivery report (using the parameter DLR=1) which will be submitted from MMP to Server when the final status for the message has been reached. A DLR is structured as any other message but has a special message type set, it will also contain a reference to the id of the original message.
  • 4. 2. Client to Movitext Messaging Platform (sending) This section describes how to send requests from the Client Application (Client) to the Movitext Messaging Platform (MMP) and the possible responses to such requests. The Client issues a HTTP GET or POST request to the MMP using a specific URL. The MMP issues back a response which completes the transaction. Please note that the MMP response can either be an HTTP error code or a HTTP OK (200) in which case the returned response body will contain further information. The Client supplies a number of parameters to the MMP. 2.1. Submit message 2.1.1. Request parameters Parameters are found in section 4, “Parameter reference”. 2.1.2. Example sending text message Username: user1 Password: secret Destination address: +46-70-123456 Message: ”Hello world” http://sms.example.com:9011/bin/send?USERNAME=user1&PASSWORD=verysecret& DESTADDR=4670123456&MESSAGE=Hello+world 2.1.3. Example sending binary message Username: user1 Password: secret Destination address: +46-70-123456 Message: 0x41 0x42 0x43 0x4a http://sms.example.com:9011/bin/send?USERNAME=user1&PASSWORD=verysecret& DESTADDR=4670123456&CHARCODE=2&MESSAGE=4142434A 2.1.4. Example sending binary message with UDH Username: user1 Password: secret Destination address: +46-70-123456 UDH: 0x06 0x05 0x04 0x0b 0x84 0x23 0xf0 (WAP push) Message: 0x41 0x42 0x43 0x4a (not a valid message only to illustrate example) http://sms.example.com:9011/bin/send?USERNAME=user1&PASSWORD=verysecret& DESTADDR=4670123456&CHARCODE=2&UDHI=1&MESSAGE=0605040B8423F04142 434A
  • 5. 2.2. Responses Responses from the Mobile SV Platform are HTTP responses which contain a status code which is either 200 (OK) or an error code. If HTTP status is OK then the response body includes further status information for the operation. Response body include two or, optionally, three lines: 1. Contains the assigned message id, a numeric value, or -1 if the request failed. 2. Contains the status code, 0 for success or otherwise a numeric value other than 0 indicating what error occurred. Error codes: 1 – Unkown error, 2 – Syntax error, mandatory parameter missing, 10 – Access denied, 11 – Invalid message, 16 – No message credits left 3. If present, contains a text describing the error that occurred. 2.2.1. Example: Response indicating success 124365 0 OK 2.2.2. Example: Response indicating failure -1 2 Recipient (DESTADDR) is missing 3. Movitext Messaging Platform to Client (receiving) This section describes requests that are sent from the Movitext Messaging Platform (MMP) to the Customer Server and how the Server should respond. Such requests are sent when incoming (Mobile-Originated) messages are received and forwarded to the customer. Same type of requests are used for Delivery Reports (DLRs). MMP issues a HTTP POST request to the Server using a specific URL. The Server must respond with a HTTP OK (200), body should be empty and will be ignored. MMP will supply a number of parameters. Parameters are found in section 4, “Parameter reference”. Typical parameters for request containing message: ID, SOURCEADDR, SOURCEADDRTON, SOURCEADDRNPI, DESTADDR, MESSAGE, VP Typical parameters for request containing DLR: ID, DLRID, SOURCEADDR, DESTADDR, STATUS, MSGTYPE, MESSAGE, VP
  • 6. 4. Parameter reference Below the most common request parameters are listed. Other additional parameters may be present in requests. The rightmost column describes whether parameter is used for sending or receiving messages/DLRs. Parameter Description Mandatory - M Optional - O Send - S Receive - R USERNAME Username for MMP account M S PASSWORD Password for MMP account M S ID Message id M R ORIGID Original message id Only used for SAT when a reply to a previously sent message is received M (SAT replies) R DESTADDR Destination address (recipient) MSISDN should be on international format starting with country code. Example: 4670123456 M S,R SOURCEADDR Source address (sender) Alphanumeric senders can be a maximum of 11 characters according to GSM spec only A-Z, a-z, 0-9 and space should be used O S,R SOURCEADDRTON Type of Number (TON) for source address Values: 0 Unknown 1 International (default) 5 Alphanumeric O S,R SOURCEADDRNPI Numbering Plan Indicator (NPI) for source address Should not be set when sending messages where it will default to 1. O S,R DESTADDRTON Type of Number (TON) for destination address Should not be set when sending O S,R
  • 7. messages where it will default to 1 (international number). DESTADDRNPI Numbering Plan Indicator (NPI) for destination address Should not be set when sending messages where it will default to 1. O S,R CHARCODE Message encoding Values: 0 (GSM text, default also used for ISO-8859-15 when conversion enabled for account) 2 (Binary, 8-bit) 4 (UCS2, Unicode 16-bit) O S,R MESSAGE Message data Format depends on message type. For GSM text messages data is URL encoded. For binary or UCS2 messages data must be hex encoded. M (messages) O (DLRs) S,R MSGTYPE Message type 1 Normal 5 DLR M (DLRs only) R DLR Request DLR Set to “1” to request that a delivery report (DLR) be sent back O S DLRID Original message id for DLRs When a DLR is received this parameter will contain the id of the original message it refers to M (DLRs only) R STATUS Status Indicates status of message 1 – Delivered 2 – In process 3 – Failed 4 – Deleted 5 – Expired 6 – Rejected 7 – Canceled 8 – Queued 9 – Orphaned M (DLRs only) R
  • 8. 10 – Relayed 11 – Unknown KEYWORD First word in message O R VP Validity Period Indicates how long (in seconds) a message will be stored for delivery before it will be expired O S,R UDHI User Data Header (UDH) Indicator When set to non-zero value, specifies that UDH is present in the message body. O S SOURCEPORT Source port Numeric value, 0 – 65535 This information will be added to UDH. O S DESTPORT Destination port Numeric value, 0 – 65535 This information will be added to UDH. O S CONCATSMSREF For concatenated messages Specifies a numeric reference number, 0 – 255 Not needed to send long messages. O S,R CONCATSMSSEQ For concatenated messages Specifies sequence number for this message part Not needed to send long messages. O S,R CONCATSMSMAX For concatenated messages Specifies total number of parts for this message Not needed to send long messages. O S,R