Results 1 to 8 of 8

Thread: SMS Api

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    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!

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

    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
  •