Results 1 to 8 of 8

Thread: SMS Api

  1. #1
    Join Date
    Mar 2015
    Posts
    5

    Default SMS Api

    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!

  2. #2
    Join Date
    Feb 2007
    Location
    Irvine CA
    Posts
    1,542,128,043

    Default Re: SMS Api

    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.
    Timothy Dick
    Founder/CEO
    VOIPo.com

    Interact with VOIPo: Twitter, Facebook

  3. #3
    Join Date
    Mar 2015
    Posts
    5

    Default Re: SMS Api

    It looks like just the notifications can be sent this way, do you have documentation on that?
    Thanks!

    Quote Originally Posted by VOIPoTim View Post
    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.

  4. #4
    Join Date
    Mar 2015
    Posts
    5

    Default Re: SMS Api

    I'll try to clarify my question it looks like these are the available options:
    1. Phone Number
    2. Email
    3. online only
    4. POST/URL/JSON - API
    5. POST/URL/XML - API
    6. SIP URL


    How do we use the last 3?

  5. #5
    Join Date
    Feb 2007
    Location
    Irvine CA
    Posts
    1,542,128,043

    Default Re: SMS Api

    Please contact support to see if those options are active/available for receiving messages. They may be placeholders by the developers, but support can clarify.
    Timothy Dick
    Founder/CEO
    VOIPo.com

    Interact with VOIPo: Twitter, Facebook

  6. #6
    Join Date
    Mar 2015
    Posts
    5

    Default Re: SMS Api

    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
    PHP 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;
    for XML
    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;
    Hopefully others will find this useful!

  7. #7
    Join Date
    Mar 2015
    Posts
    5

    Default Re: SMS Api

    I created a github repo here: https://github.com/bislewl/voipo_api

    Quote Originally Posted by bislewl View Post
    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
    PHP 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;
    for XML
    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;
    Hopefully others will find this useful!

  8. #8
    Join Date
    Feb 2007
    Location
    Irvine CA
    Posts
    1,542,128,043

    Default Re: SMS Api

    Quote Originally Posted by bislewl View Post
    I created a github repo here: https://github.com/bislewl/voipo_api
    Thank you for contributing this to the community here.
    Timothy Dick
    Founder/CEO
    VOIPo.com

    Interact with VOIPo: Twitter, Facebook

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •