I see in the vPanel that there is an option to do SMS via JSON, however I can't manage to find any more information about this.
Any one have information or the API docs?
Thanks!
I see in the vPanel that there is an option to do SMS via JSON, however I can't manage to find any more information about this.
Any one have information or the API docs?
Thanks!
Hello,
The SMS service is designed to be peer to peer communication only and we're not contractually able to offer it in an API format since that would make it too easy to be used for bulk messaging or sending ads.
We may consider adding a bulk service in the future, but for now with it being for peer to peer communication only, we can't really offer an API for it.
I'll try to clarify my question it looks like these are the available options:
- Phone Number
- online only
- POST/URL/JSON - API
- POST/URL/XML - API
- SIP URL
How do we use the last 3?
I wanted to share the solution to the question.
In the field for the url point it to a file with content below:
For JSON
for XMLPHP Code:
<?php
$input = json_decode(file_get_contents("php://input"));
$message_id = $input->Message->MessageId;
$time = $input->Message->Time;
$from = $input->Message->From;
$to = $input->Message->To;
$body = $input->Message->Body;
Hopefully others will find this useful!PHP Code:
<?php
$input = file_get_contents("php://input");
$xml = new SimpleXMLElement($input);
$message_id = (string)$xml->Message->MessageId;
$time = (string)$xml->Message->Time;
$from = (string)$xml->Message->From;
$to = (string)$xml->Message->To;
$body = (string)$xml->Message->Body;
I created a github repo here: https://github.com/bislewl/voipo_api
Bookmarks