Knowladge Base

GET DID FREE MINUTES AND PER MINUTE CHARGES AFTER FREE MINUTES

Method for Getting DID free minutes and per minute charges after free minutes information

This method retrieves extra DID information.

Method Signature

sub getDIDMinutesInfo ($UserID, $Password, $DIDNumber)

Example Usage

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

<?php

require_once “nusoap.php”;

$parameters=array(“1001001″,”kts772″,”15673456789”);
$soapclient= new soapclient(‘http://api.didx.net/webservice/WebGetDIDSMinutes.php’);
$SoapResult = array();
$SoapResult = $soapclient->call(“getDIDMinutesInfo”, $parameters,’urn:getDIDMinutesInfo’);

print_r($SoapResult);

?>

On successfull command, the function will return DIDNumber, Free Minutes of this DID, Per Minute Charges After Free Minutes,Channels of DID.

Fields Returned:
DIDNumber
FreeMin
OurPerMinuteCharges
iChannel

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
-2 = Your Password is Incorrect
-3 = There are no DID in our Database.