Knowladge Base

3K CHANGE SMS SETTINS

 

Example URL:

http://newapi.didx.net/DidxApis/api/ChangeSmsSettings.php?UserID=700290&Password=XXXX&DIDNumber=14194643509&SmsUrl=https://abc.com

 

Example Code in PHP:

<?php

$curl_handle = curl_init();

$url = "http://newapi.didx.net/DidxApis/api/ChangeSmsSettings.php?UserID=700290&Password=XXXX&DIDNumber=14194643509&SmsUrl=https://abc.com";

curl_setopt($curl_handle, CURLOPT_URL, $url);

curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, true);

$curl_data = curl_exec($curl_handle);

curl_close($curl_handle);

$response_data = json_decode($curl_data);

print_r($response_data);

die();

?>

 

Input Fields:

    1. UserID
    2. Password
    3. DID Number
    4. SMSURL
    5. SMS Variables

 

Returned Fields:

In case of successful changing the DID number would be returned

 

Error Codes:

In case of any incorrect information provided by the user or in case of no matching data, an error code will be returned. Error codes correspond to the following messages:

-1 = User ID does not exist or password does not match

-2 = No such DID Number exists

-3 = This DID is not in your ownership.