Add a tag to a number

Description

Add a tag to a number

Parameters

string NumberThe number
string TagThe name of the tag

Request

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

Response

<?xml version="1.0"?>
<NoveroResponse>
    <Response target="NoveroNumbers" name="AddTag" Code="200" RequestId="TestRequest">
        <Colour>purple</Colour>
        <TagId>131</TagId>
    </Response>
</NoveroResponse>