Knowladge Base

GET THE LIST OF PURCHASED NUMBERS FROM YOUR ACCOUNT

Method for Getting Purchased Numbers

This method returns the list of available DIDs which you have purchased in your account.

Method Signature

getMyPurchasedNumbers($UserID,$Password,$PageNo,$SortBy,$SortOrder)

$UserID: DIDx Account No.
$Pass: Password of your account.
$PageNo: The DIDs will be returned in a block of 50 for each page, sorted by purchased date.
$SortBy: Numeric value to specify sorting parameter

Sorting can be based on:
0: DIDNumber
1: Setup Charges
2: Monthly Charges
3: Per Minutes Charges
4: Country
5: Area
6: Country Code
7: Area Code

$SortOrder: 1 for descending order, 0 for ascending order

Example Usage:

 
<?php

require_once "nusoap.php";

$parameters=array('889918','xxxxxxxx',2,6,0);

$soapclient= new soapclientnusoap('http://api.didx.net/webservice/WebGetMyAccount.php');
$SoapResult = array();
$SoapResult = $soapclient->call('getMyPurchasedNumbers', $parameters,'urn:getMyPurchasedNumbers');

print_r($SoapResult);

exit;
?>

The above example may show DIDs of 2nd block of 50 DIDs, sorted by Country in ascending order.

Return Fields:

DIDNumber
OurSetupCost
OurMonthlyCharges
OurPerMinuteCharges
Country
Area
CountryCode
StateCode
VendorID
RateCenter
DIDID
HideNumber
CountryID
SMSEnable
VoiceEnable
VanityRating
TestStatus
PurchasedDate
RingTo
RingToType
FreeMinutes

– Method for Getting Purchased Numbers By Country/Area Code

This method returns the list of available DIDs of particular country code or area code provided, which you have purchased in your account.

Method Signature

getMyPurchasedNumbers($UserID,$Password,$CountryCode,$AreaCode)

$UserID: DIDx Account No.
$Pass: Password of your account.
$CountryCode: Country Code of the DID Numbers
$AreaCode: Area Code of the DID Numbers

Example Usage:

 
<?php

require_once "nusoap.php";

$parameters=array('889918','xxxxxxxx');

$soapclient= new soapclientnusoap('http://api.didx.net/webservice/WebGetMyAccount.php');
$SoapResult = array();
$SoapResult = $soapclient->call('getMyPurchasedNumbersByCountryCodeAreaCode', $parameters,'urn:getMyPurchasedNumbersByCountryCodeAreaCode');

print_r($SoapResult);

exit;
?>

Return Fields:

DIDNumber
OurSetupCost
OurMonthlyCharges
OurPerMinuteCharges
Country
Area
CountryCode
StateCode
VendorID
RateCenter
DIDID
HideNumber
CountryID
SMSEnable
VoiceEnable
VanityRating
TestStatus
PurchasedDate
RingTo
RingToType
FreeMinutes