Method for Getting list of all purchased DIDs
By using this method the user can get list of all purchased DIDs. The user has to provide user id, password and page (like 0,1,3 each request return 100 records).
In case of successful purchase, list of dids returned. Otherwise, an error code would be returned which is described later.
function GetAllPurchasedDIDS? ($UserID,$Password,$Page)
We are providing a sample code in PHP that accesses and uses this service.
$soapclient= new soapclient(‘http://api.didx.net/webservice/WebGetPurchasedDIDS.php’);
$SoapResult = array();
$SoapResult = $soapclient->call(“GetAllPurchasedDIDS”, $parameters,’urn:GetAllPurchasedDIDS’);
This code requests to get the list of purchased DIDs by 954488.
Successfull query will return the list of first 100 purchased numbers.
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
-2 = Your Password is Incorrect
-3 = No records found