Disable payphone access on a freephone number
Description
Turn off Payphone Access on the specified freephone number. This function can only be used on freephone numbers (starting 080). Calls from BT public payphones incur a surcharge. Disabling Payphone access will prevent these calls from coming in and connecting.
Parameters
string Number | The TTNC number which is to be modified. This must be a freephone number (starting 080). |
Request
<?xml version="1.0"?>
<NoveroRequest>
<Request target="NoveroNumbers" name="EnablePayPhoneAccess" id="TestRequest">
<Number>08001182043</Number>
</Request>
</NoveroRequest>
<?php
require_once('TTNCApi.php');
$Api = new TTNCApi('<username>', '<password>', '<VKey>');
$Request = $Api->NewRequest('NoveroNumbers', 'EnablePayPhoneAccess', 'TestRequest');
$Request->SetData('Number', '08001182043');
$Api->MakeRequests();
$Response = $Api->GetResponseFromId('TestRequest');
?>
require TTNCApi
api = TTNCApi.new('<username>', '<password>', '<vkey>')
request = api.newrequest('NoveroNumbers', 'EnablePayPhoneAccess', 'TestRequest')
request.setdata('Number', '08001182043')
api.makerequest()
p request.getresponse()
api = TTNCApi('<username>', '<password>', '<vkey>')
request = api.newrequest('NoveroNumbers', 'EnablePayPhoneAccess', 'TestRequest')
request.setdata('Number', '08001182043')
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", "EnablePayPhoneAccess", "TestRequest");
request.setData("Number", "08001182043");
api.MakeRequests();
TTNCParser dic = request.GetResponse();
}
}
Response
<?xml version="1.0"?>
<NoveroResponse>
<Response target="NoveroNumbers" name="EnablePayPhoneAccess" Code="200" RequestId="TestRequest">
<ResponseMessage></ResponseMessage>
<Success></Success>
</Response>
</NoveroResponse>