To URL Copy link to clipboard

Another option available is to send SMS information to a URL. This is a kind of analog API that sends data in a specific format and receives a response.


You can set a message template and subject for this method of sending. At the same time, use this data on your server at your discretion.

The server request and response use the common JSON format.

An example of what the data sent to the URL (POST request) looks like:

{

"subject":"example sibject",

"message":"example message"

}

An example of what the data should look like in the response to the request (error code 0 corresponds to successful sending):

{

"error_code": 0

}

An example of retrieving and retrieving data on a server in PHP (If your server uses a different programming language, then use a similar solution for it):

$jsonObject = json_decode(implode('', file("php://input")));

echo $jsonObject->subject; // remove in release version (this is just for demonstration how to get data)

echo $jsonObject->message; // remove in release version (this is just for demonstration how to get data)

If you have any questions or have suggestions regarding the functioning of this sending method, please write to our technical support mail.

Example PHP

Download now:

Download from Google PlayDownload from HuaweiDownload from RustoreDownload from Bazaar