1F. METHOD FOR GETTING AVAILABLE CHANNEL BASED
This method returns the list of available DIDs which have been offered as Channel Based DIDs rather per minute charges with limited minutes.
sub GetChannelSupportedDIDsByPrefix($UserID,$Password,$CountryCode,$VendorRatingFrom,$VendorRatingTo, $Vendors (csv values), $RateFrom, $RateTo,$CountryID)
We are providing a sample code in PHP which accesses and uses this service.
$soapclient= new soapclient(‘http://api.didx.net/webservice/WebGetChannelSupportedDIDs.php’);
$SoapResult = array();
$SoapResult = $soapclient->call(“GetChannelSupportedDIDsByPrefix”, $parameters,’urn:GetChannelSupportedDIDsByPrefix’);
The first two arguments passed to the method are user id and password. The third argument is the country code / area code prefix e.g. 1567, the fourth represents starting Rating and the fifth represents the ending Rating. In this case, we’ve provided ratings from 5 to Vendor Rating 9. (Optional: Then sixt list of preferred vendors in csv, seventh & eight are monthly charges range, 9th is the country ID)
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 DIDs Areas avaiable in our record.