Previous topicNext topic
Help > How to... >
Send SMS by HTTP API

Note: Only ultimate edition support HTTP API

Configuration

 

GET method send SMS

http://127.0.0.1:8888?username=&password=&to=123456&message=hello%20world&prior=0&com=COM4&imsi=460123456000000

Response:  b4e320a4-704a-48fb-9015-1c27b8d57c85

Normally if user doesn't specify the ID filed, software will assign an ID for each message and response with this ID.

Or

http://127.0.0.1:8888?ID=99123345678&username=&password=&to=123456&message=hello%20world&prior=0&com=COM4&imsi=460123456000000

Response: 99123345678

If user specify the ID for message, software will response this ID once software get the message correctly.

 

Fields:

 [host ip]:[port]  Server IP and port
 username  Checked option 'Authentication' and predefine username
 password  Checked option 'Authentication' and predefine password
 to  destination phone number
 message  SMS text
 prior  process message with prior, add the message to top of outbox
 com  send SMS with specified COM port
 imsi  send SMS with specified SIM card

 

Post method send multiple SMS with once submit (UTF-8)

Example:

{
  "username": "username",
  "password": "pwd",
  "messages": [
    {
      "id": "c7d05392-ecd6-4f99-8618-36fd6b39115f",
      "to": "9824539094",
      "message": "test message 1",
      "com": "",
      "imsi": "",
      "prior": ""
    },
    {
      "id": "ebf79454-8e55-4c9a-8387-af1570101b32",
      "to": "9375012639",
      "message": "test message 2",
      "com": "",
      "imsi": "",
      "prior": ""
    },
    {
      "id": "c7d05392-ecd6-4f99-8618-36fd6b39115f",
      "to": "9824539094",
      "message": "test message 1",
      "com": "",
      "imsi": "",
      "prior": ""
    }  
  ]
}

 

Response:

OK