Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Powered by Vanilla

Call Back API

edited January 2015 in Sonetel Client
Hello,

I'm trying to use the Sonetel Call Back API but it does not work. Could you please help me ?

Here is my code "test.php" to send the HTTP request.

image
  
Thanks
David

Comments

  • more information is available here: http://www.sonetel.com/site/pmwiki.php?n=Admin.CallBackApi

    but it does not solve my porblem...
  • For those interested, the Support team solved my problem. Here is the code to use:
    $data = array('email' => 'abc@xyz.com','password' => 'XXXXXXXXX','call1' => 'XXXXXXXXXX','call2' => 'XXXXXXXXXXXXX');
    $data_to_send = http_build_query($data);
    $ch = curl_init($url);
    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST"); 
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($ch, CURLOPT_POSTFIELDS,$data_to_send);
    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); 
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
    curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
    curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/x-www-form-urlencoded'));
    $result = curl_exec($ch);
  • Thanks for sharing David!

    We took the liberty of adding the code to the page where we have the info about the Call back API.
  • countries that has call back number or list of call back numbers 
Sign In or Register to comment.