Retrieve the configuration of a number

Description

Retrieve configuration data for a specific number.

Parameters

string NumberThe number which configuration data is being requested for.

Request

<?xml version="1.0"?>
<NoveroRequest>
    <Request target="NoveroNumbers" name="GetNumberConfig" id="TestRequest">
        <Number>01245123456</Number>
    </Request>
</NoveroRequest>
<?php
    require_once('TTNCApi.php');
    $Api = new TTNCApi('<username>', '<password>', '<VKey>');
    $Request = $Api->NewRequest('NoveroNumbers', 'GetNumberConfig', 'TestRequest');
    $Request->SetData('Number', '01245123456');
    $Api->MakeRequests();
    $Response = $Api->GetResponseFromId('TestRequest');
?>
require TTNCApi
api = TTNCApi.new('<username>', '<password>', '<vkey>')
request = api.newrequest('NoveroNumbers', 'GetNumberConfig', 'TestRequest')
request.setdata('Number', '01245123456')
api.makerequest()
p request.getresponse()
api = TTNCApi('<username>', '<password>', '<vkey>')
request = api.newrequest('NoveroNumbers', 'GetNumberConfig', 'TestRequest')
request.setdata('Number', '01245123456')
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("NoveroNumbers", "GetNumberConfig", "TestRequest");
        request.setData("Number", "01245123456");
        api.MakeRequests();
        TTNCParser dic = request.GetResponse();
     }
}

Response

<?xml version="1.0"?>
<NoveroResponse>
    <Response target="NoveroNumbers" name="GetNumberConfig" Code="200" RequestId="TestRequest">
        <Number>01245123456</Number>
        <Rules>
            <Rule RuleId="1">
                <Destination>447777777777|4478123456</Destination>
                <VoicemailDestination>[email protected],[email protected]</VoicemailDestination>
                <VoicemailSMSDestination>447777777777,4478123456</VoicemailSMSDestination>
                <Option>-</Option>
                <HuntDelay>20</HuntDelay>
                <TBRSettings>
                    <TimeFrom>0</TimeFrom>
                    <TimeTo>0</TimeTo>
                    <WeekDays/>
                    <MonthDays/>
                    <Months/>
                </TBRSettings>
                <HuntGroup>
                    <Enabled>false</Enabled>
                    <ProAvailable>false</ProAvailable>
                </HuntGroup>
                <Voicemail>
                    <Enabled>false</Enabled>
                    <ProAvailable>false</ProAvailable>
                </Voicemail>
                <VoicemailService>
                    <Enabled>false</Enabled>
                    <ProAvailable>false</ProAvailable>
                </VoicemailService>
                <VirtualReceptionist>
                    <Enabled>false</Enabled>
                    <ProAvailable>false</ProAvailable>
                </VirtualReceptionist>
                <TimeBasedRouting>
                    <Enabled>false</Enabled>
                    <ProAvailable>false</ProAvailable>
                </TimeBasedRouting>
                <Modified>2013-05-31 10:17:52</Modified>
            </Rule>
 
            ...
 
        </Rules>
    </Response>
</NoveroResponse>