//[[restapi:start|RESTful API]]//
====== Blast by File ======
==== Overview ====
Send SMSs massively using as recipient a list of mobile numbers.
The recipient list its a File (text or excel). Please read the [[restapi:appx_phonelist#smss_recipient_list|SMSs Recipient List]] to learn more about this.
==== URL ====
Parameters on the following URL are inside braces { }
{base_url}/rest/api/tools/sendSMSByFile/{instanceId}/{publicKey}/{signature}
Please note that on the URL you won't see any POST parameters, only the regular parameters \\ All POST parameters will be highlighted in the following table.
^ Parameter Name ^ Description ^
| instanceId | An **instance id** is the workspace identification number, //if you don't know yours please request it using our [[:mmc_otto|ticketing tool]], you will need to provide your Mobile Engagement Campaign Manager's URL and your user login// |
| file \\ POST | Recipients who will receive the message. Please read the [[restapi:appx_phonelist#smss_recipient_list|phone list file guidelines]] for more information about this text file |
| publicKey | The public key to access this API. //if you don't know yours please request it using our [[:mmc_otto|ticketing tool]], you will need to provide your Mobile Engagement Campaign Manager's URL and your user login// |
| signature | The unique [[restapi:appx_ciphering#SHA256 - Cipher|SHA256]] signature for this call, it's involve all input parameters. To learn about generating the correct signature please visit our [[restapi:appx_call_ex|Java Example]] |
==== Response ====
The Response XML is divided in a static part and a dynamic one, we call it dynamic because it will vary depending on the method you invoke. Please read our [[restapi:appx_resp_xml|Response XML Basics]] section if you want to learn more about the response parts.
sendSMS
OKCompleted-6710228708174720670carrierName1989365374418133210984OGANGI TEST MESSAGESENT_TO_CARRIERSent to CarrierUTF-82014-12-17T00:12:13.571-04:30America/CaracasAs223sdadq8d8287v5v
...
-8174720676710228700carrierName1989365374413056708084OGANGI TEST MESSAGESENT_TO_CARRIERSent to CarrierUTF-82013-09-17T10:13:59.176-04:30America/CaracasAs223sdadq8d8287v5v
== Result parameters ==
Please be aware that the **////** tag and its content is a generic object and may apply to other responses in other methods.
^ Parameter Name ^ Description ^ Possible Values ^
| message.id | Unique identifier for the message created | Text |
| message.carrierName | The carrier name used for this delivery | Text |
| message.from | Who sent the message | for PUSH, Application that sent the message \\ for SMS, Short/Long code which originated the message \\ for EMAIL, the email address which sent the message. |
| message.to | Recipient for this message | Any of the following: ** \\ deviceId \\ mobile number \\ email address ** |
| message.text | Message's content | Text |
| message.status | Indicates the message's status at the origination moment | See our [[restapi:appx_msg_status#blast|Message's Status]] page |
| message.statusDescription | A simple explanation about the message's status | Text |
| message.encoding | The charset encoding used for the message's text | Valid encoding name |
| message.date | Time mark at the origination moment | A formatted date string: **yyyy-MM-dd'T'HH:mm:ss.SSSZZ** \\ For more information please review the [[restapi:appx_date|pattern letters]] quick reference |
| message.timezone | Timezone used | Text |
| message.clientId | The client identification (sender) | Text |
====== Lists Instance Codes ======
==== Overview ====
List all short/long codes for a given instance.
==== URL ====
Parameters on the following URL are inside braces { }
{base_url}/rest/api/getShortcodes/{instanceId}/{userName}/{publicKey}/{signature}
^ Parameter Name ^ Description ^
| instanceId | An **instance id** is the workspace identification number, //if you don't know yours please request it using our [[:mmc_otto|ticketing tool]], you will need to provide your Mobile Engagement Campaign Manager's URL and your user login// |
| userName | The user name associated with the instance |
| publicKey | The public key to access this API. //if you don't know yours please request it using our [[:mmc_otto|ticketing tool]], you will need to provide your Mobile Engagement Campaign Manager's URL and your user login// |
| signature | The unique [[restapi:appx_ciphering#SHA256 - Cipher|SHA256]] signature for this call, it's involve all input parameters. To learn about generating the correct signature please visit our [[restapi:appx_call_ex|Java Example]] |
==== Response ====
The Response XML is divided in a static part and a dynamic one, we call it dynamic because it will vary depending on the method you invoke. Please read our [[restapi:appx_resp_xml|Response XML Basics]] section if you want to learn more about the response parts.
getShortcodes
OKCompleted0000000
...
1111111
== Result parameters ==
^ Parameter Name ^ Description ^ Possible Values ^
| shortcode.sc | The short/long code | String |
====== Create or Edit Broadcast From JSON ======
==== Overview ====
Create or edit a broadcast by file using JSON
This is a POST method, which means that you need to use it through a POST call
==== URL ====
Parameters on the following URL are inside braces { }
{base_url}/rest/api/createBroadcastFromJson/{instanceId}/{broadcastId}/{shortcode}/{userName}/{shortcodeIgnore}/{campaignName}/{date}/{publicKey}/{signature}
^ Parameter Name ^ Description ^
| instanceId | An **instance id** is the workspace identification number, //if you don't know yours please request it using our [[misc:otto|ticketing tool]], you will need to provide your Mobile Engagement Campaign Manager's URL and your user login// |
| broadcastId | The broadcast ID, provide a valid one if editing or **-1** if new |
| shortcode | The short/long code to use in this delivery |
| userName | The user name that will own this broadcast |
| shortcodeIgnore | A Boolean, if false the shortcode parameter will be ignored |
| campaignName \\ OPTIONAL | Optional: A name for this campaign |
| date \\ OPTIONAL | Time & date to schedule the broadcast. formatted date string: **dd-MM-yyyy HH:mm** For more information please review the [[restapi:appx_date#date_format_-_pattern_letters|pattern letters]] quick reference Set this to null ff the broadcast is meant to start immediately |
| to \\ POST | Recipients who will receive the message. Please read the [[restapi:appx_phonelist#smss_recipient_json|JSON recipient format]] for more information about this JSON |
| publicKey | The public key to access this API. //if you don't know yours please request it using our [[misc:otto|ticketing tool]], you will need to provide your Mobile Engagement Campaign Manager's URL and your user login// |
| signature | The unique [[restapi:appx_ciphering#SHA256 - Cipher|SHA256]] signature for this call, it's involve all input parameters. To learn about generating the correct signature please visit our [[restapi:appx_call_ex|Java Example]] |
==== Response ====
The Response XML is divided in a static part and a dynamic one, we call it dynamic because it will vary depending on the method you invoke. Please read our [[restapi:appx_resp_xml|Response XML Basics]] section if you want to learn more about the response parts.
createBroadcastFromJson
OKCompleted1Test message2016-08-16T17:49:42.346-04:0022SCHEDULED0000000
== Result parameters ==
^ Parameter Name ^ Description ^ Possible Values ^
| broadcast.id | The broadcast ID | Number |
| broadcast.text | Broadcast's content | Text |
| broadcast.startDate | Starting time mark | Date |
| broadcast.expectedMessages | Expected messages | Number |
| broadcast.sentMessages | Sent messages count | Number |
| broadcast.statusDescription | Current broadcast status. See our [[restapi:appx_broadcast|Broadcast Types and Status]] section for more information | Text |
| broadcast.shortcode | Short/Long Code through which the messages are going to be delivered | Number |
==== Call Example ====
Please check the following link for examples on how to build the call for this method [[restapi:appx_call_json_ex| Json Call Example ]]
====== Broadcast Detail ======
==== Overview ====
Retrieve the broadcast information.
==== URL ====
Parameters on the following URL are inside braces { }
{base_url}/rest/api/getBroadcast/{instanceId}/{broadcastId}/{publicKey}/{signature}
^ Parameter Name ^ Description ^
| instanceId | An **instance id** is the workspace identification number, //if you don't know yours please request it using our [[:mmc_otto|ticketing tool]], you will need to provide your Mobile Engagement Campaign Manager's URL and your user login// |
| broadcastId | The broadcasts ID to consult |
| publicKey | The public key to access this API. //if you don't know yours please request it using our [[:mmc_otto|ticketing tool]], you will need to provide your Mobile Engagement Campaign Manager's URL and your user login// |
| signature | The unique [[restapi:appx_ciphering#SHA256 - Cipher|SHA256]] signature for this call, it's involve all input parameters. To learn about generating the correct signature please visit our [[restapi:appx_call_ex|Java Example]] |
==== Response ====
The Response XML is divided in a static part and a dynamic one, we call it dynamic because it will vary depending on the method you invoke. Please read our [[restapi:appx_resp_xml|Response XML Basics]] section if you want to learn more about the response parts.
getBroadcast
OKCompleted2message2013-09-05T15:10:14-04:002013-09-05T15:10:14-04:002220000000
== Result parameters ==
^ Parameter Name ^ Description ^ Possible Values ^
| broadcast.id | The broadcast id | Number |
| broadcast.text | Content of the broadcast | Text |
| broadcast.startDate | Time mark when the broadcast starts | Date |
| broadcast.endDate | Time mark when the broadcast ends | Date |
| broadcast.expectedMessages | Expected messages on this broadcast | Number |
| broadcast.sentMessages | Already sent messages count | Number |
| broadcast.status | Current broadcast status. See our [[restapi:appx_broadcast|Broadcast Types and Status]] section for more information | Number |
| broadcast.shortcode | Short/Long Code through which the messages are going to be delivered | Number |
====== Suspend Broadcast ======
==== Overview ====
Suspend a broadcast currently in progress.
==== URL ====
Parameters on the following URL are inside braces { }
{base_url}/rest/api/suspendBroadcast/{instanceId}/{broadcastId}/{publicKey}/{signature}
^ Parameter Name ^ Description ^
| instanceId | An **instance id** is the workspace identification number, //if you don't know yours please request it using our [[:mmc_otto|ticketing tool]], you will need to provide your Mobile Engagement Campaign Manager's URL and your user login// |
| broadcastId | The running broadcast ID to suspend |
| publicKey | The public key to access this API. //if you don't know yours please request it using our [[:mmc_otto|ticketing tool]], you will need to provide your Mobile Engagement Campaign Manager's URL and your user login// |
| signature | The unique [[restapi:appx_ciphering#SHA256 - Cipher|SHA256]] signature for this call, it's involve all input parameters. To learn about generating the correct signature please visit our [[restapi:appx_call_ex|Java Example]] |
==== Response ====
The Response XML is divided in a static part and a dynamic one, we call it dynamic because it will vary depending on the method you invoke. Please read our [[restapi:appx_resp_xml|Response XML Basics]] section if you want to learn more about the response parts.
suspendBroadcast
OKCompleted
====== Resume Broadcast ======
==== Overview ====
Resume a broadcast that was previously suspended.
==== URL ====
Parameters on the following URL are inside braces { }
{base_url}/rest/api/resumeBroadcast/{instanceId}/{broadcastId}/{publicKey}/{signature}
^ Parameter Name ^ Description ^
| instanceId | An **instance id** is the workspace identification number, //if you don't know yours please request it using our [[:mmc_otto|ticketing tool]], you will need to provide your Mobile Engagement Campaign Manager's URL and your user login// |
| broadcastId | The broadcast ID to resume |
| publicKey | The public key to access this API. //if you don't know yours please request it using our [[:mmc_otto|ticketing tool]], you will need to provide your Mobile Engagement Campaign Manager's URL and your user login// |
| signature | The unique [[restapi:appx_ciphering#SHA256 - Cipher|SHA256]] signature for this call, it's involve all input parameters. To learn about generating the correct signature please visit our [[restapi:appx_call_ex|Java Example]] |
==== Response ====
The Response XML is divided in a static part and a dynamic one, we call it dynamic because it will vary depending on the method you invoke. Please read our [[restapi:appx_resp_xml|Response XML Basics]] section if you want to learn more about the response parts.
resumeBroadcast
OKCompleted
====== Stop Broadcast ======
==== Overview ====
Stop a broadcast currently in progress.
==== URL ====
Parameters on the following URL are inside braces { }
{base_url}/rest/api/stopBroadcast/{instanceId}/{broadcastId}/{publicKey}/{signature}
^ Parameter Name ^ Description ^
| instanceId | An **instance id** is the workspace identification number, //if you don't know yours please request it using our [[:mmc_otto|ticketing tool]], you will need to provide your Mobile Engagement Campaign Manager's URL and your user login// |
| broadcastId | Running broadcast Id to stop |
| publicKey | The public key to access this API. //if you don't know yours please request it using our [[:mmc_otto|ticketing tool]], you will need to provide your Mobile Engagement Campaign Manager's URL and your user login// |
| signature | The unique [[restapi:appx_ciphering#SHA256 - Cipher|SHA256]] signature for this call, it's involve all input parameters. To learn about generating the correct signature please visit our [[restapi:appx_call_ex|Java Example]] |
==== Response ====
The Response XML is divided in a static part and a dynamic one, we call it dynamic because it will vary depending on the method you invoke. Please read our [[restapi:appx_resp_xml|Response XML Basics]] section if you want to learn more about the response parts.
stopBroadcast
OKCompleted
====== Delete Broadcast ======
==== Overview ====
Delete a broadcast.
==== URL ====
Http access method: DELETE
Parameters on the following URL are inside braces { }
{base_url}/rest/api/broadcast/{instanceId}/{broadcastId}/{publicKey}/{signature}
^ Parameter Name ^ Description ^
| instanceId | An **instance id** is the workspace identification number, //if you don't know yours please request it using our [[misc:otto|ticketing tool]], you will need to provide your Mobile Engagement Campaign Manager's URL and your user login// |
| broadcastId | Broadcast ID to delete |
| publicKey | The public key to access this API. //if you don't know yours please request it using our [[misc:otto|ticketing tool]], you will need to provide your Mobile Engagement Campaign Manager's URL and your user login// |
| signature | The unique [[restapi:appx_ciphering#SHA256 - Cipher|SHA256]] signature for this call, it's involve all input parameters. To learn about generating the correct signature please visit our [[restapi:appx_call_ex|Java Example]] |
==== Response ====
The Response XML is divided in a static part and a dynamic one, we call it dynamic because it will vary depending on the method you invoke. Please read our [[restapi:appx_resp_xml|Response XML Basics]] section if you want to learn more about the response parts.
deleteBroadcast
OKCompleted