Knowladge Base

METHOD FOR CHANGING SMS URL AND VARIABLES

If you’ve already bought a number from ‘didx.net’ and what to change/set sms settings this webservice can help you do that. You would have to provide DIDx User ID, Password, DID Number, SMSURL ,SMS Variables.

Example Usage

We are providing a sample code in PHP which accesses and uses this service.

<?php

require_once “nusoap.php”;

$parameters=array(“584884″,”asdf5″,”44554645587″,”https://your-domain.com″, “variable=123”);
$soapclient= new soapclient(‘http://api.didx.net/webservice/WebSmsSettingServer.php’);
$SoapResult = array();
$SoapResult = $soapclient->call(“ChangeSmsSettings”, $parameters,’urn:ChangeSmsSettings’);

print_r($SoapResult);

?>

First argument is the DIDx User ID, second the password, third the DID number that you’ve bought, fourth the new SMS Url and fifth SMS Variables. In case of successful changing  the DID number would be returned, otherwise an error code.

Error Codes

It will return an ‘Error Code’ in case there is something wrong with the information provided or there is no matching data in our record.

-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.