Description
Retrieve a list of all available ranges.
Parameters
This function takes no parameters.
Request
<?xml version="1.0"?>
<NoveroRequest>
<Request target="NoveroNumberSearch" name="ListRanges" id="Request1"/>
</NoveroRequest>
<?php
require_once('TTNCApi.php');
$Api = new TTNCApi('<username>', '<password>', '<VKey>');
$Request = $Api->NewRequest('NoveroNumberSearch', 'ListRanges', 'Request1');
$Api->MakeRequests();
$Response = $Api->GetResponseFromId('Request1');
?>
require TTNCApi
api = TTNCApi.new('<username>', '<password>', '<vkey>')
request = api.newrequest('NoveroNumberSearch', 'ListRanges', 'Request1')
api.makerequest()
p request.getresponse()
api = TTNCApi('<username>', '<password>', '<vkey>')
request = api.newrequest('NoveroNumberSearch', 'ListRanges', 'Request1')
api.makerequest()
p request.getresponse()
using System;
using TTNCApi;
class Program
{
static void Main(string[] args)
{
TTNCApi api = new TTNCApi("<username>", "<password>", "<vkey>");
TTNCRequest request = api.NewRequest("NoveroNumberSearch", "ListRanges", "Request1");
api.MakeRequests();
TTNCParser dic = request.GetResponse();
}
}
Response
<?xml version="1.0"?>
<NoveroResponse>
<Response target="NoveroNumberSearch" name="ListRanges" Code="200" RequestId="Request1">
<Ranges>
<Range>
<RangeId>1389</RangeId>
<range>01224</range>
<prefix>516</prefix>
<tariff>Aberdeen</tariff>
<code>g</code>
<number_type>Aberdeen</number_type>
</Range>
<Range>
<RangeId>1915</RangeId>
<range>01887</range>
<prefix>47</prefix>
<tariff>Aberfeldy</tariff>
<code>g</code>
<number_type>Aberfeldy</number_type>
</Range>
...
<Range>
<RangeId>20</RangeId>
<range>0800</range>
<prefix>1182</prefix>
<tariff>Freephone</tariff>
<code>free</code>
<number_type>Freephone</number_type>
</Range>
...
</Ranges>
</Response>
</NoveroResponse>