Print

Get List of available DIDS by SMS


If you want to search the DIDs by SMS capability, you can use the following function.

- Method Signature
getAvailableRatedDIDSbySMS($UserID,$Password,$CountryCode,$AreaCode,$Vendors,$CountryID,$VRatingFrom,$VRatingTo,$NeedDocument,$SMS)

<?php
require_once "nusoap.php";

$parameters=array("65948","sdaf485","1","567","","211","5","8","","1");
$soapclient= new soapclient('http://api.didx.net/webservice/index.php');
$SoapResult = array();
$SoapResult = $soapclient->call("getAvailableRatedDIDSbySMS", $parameters,'urn:getAvailableRatedDIDSbySMS');

print_r($SoapResult);

?>
The first two arguments passed to the method are user ID and password. The third argument is the country code, fourth is area code and the fifth is for vendors list (csv), sixth represents the country ID, seventh and eight for vendor rating range, ninth argument is set 1 if you need DIDs that requires documents, "0" that dont, leave empty if you want all, 10th argument is set "1" if you need SMS capability DIDs.


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
-2 = Your Password is Incorrect
-3 = There are no rated DID's for this Area in our record.
-10 = There is no area code defined with US Country code.
-11 = Country code not provided.

Created by admin. Last Modification: Tuesday 12 of September, 2017 12:28:43 CDT by admin.

Google Translator




Google Search

 
kb.didx.net
WWW