GetUserDetails
Description
Retrieve details of the user account associated with the current API session login.
Parameters
This function takes no parameters.
Request
<?xml version="1.0"?>
<NoveroRequest>
<Request target="NoveroUser" name="GetUserDetails" id="TestRequest"/>
</NoveroRequest>
<?php
require_once('TTNCApi.php');
$Api = new TTNCApi('<username>', '<password>', '<VKey>');
$Request = $Api->NewRequest('NoveroUser', 'GetUserDetails', 'TestRequest');
$Api->MakeRequests();
$Response = $Api->GetResponseFromId('TestRequest');
?>
require TTNCApi
api = TTNCApi.new('<username>', '<password>', '<vkey>')
request = api.newrequest('NoveroUser', 'GetUserDetails', 'TestRequest')
api.makerequest()
p request.getresponse()
api = TTNCApi('<username>', '<password>', '<vkey>')
request = api.newrequest('NoveroUser', 'GetUserDetails', 'TestRequest')
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("NoveroUser", "GetUserDetails", "TestRequest");
api.MakeRequests();
TTNCParser dic = request.GetResponse();
}
}
Response
<?xml version="1.0"?>
<NoveroResponse>
<Response target="NoveroUser" name="GetUserDetails" Code="200" RequestId="TestRequest">
<Username>[email protected]</Username>
<Reference>C300001</Reference>
<Name>TTNC Sales</Name>
<FullName>TTNC</FullName>
<LastName>Sales</LastName>
<Email>[email protected]</Email>
<Company>TTNC Limited</Company>
<Phone>02031511000</Phone>
<Mobile>07812345678</Mobile>
<Address1>4 Wells Street</Address1>
<Web>www.ttnc.co.uk</Web>
<City>Chelmsford</City>
<County>ESSEX</County>
<PostCode>CM1 1HZ</PostCode>
<Country>GB</Country>
<Phone>02031511000</Phone>
<Mobile>07812345678</Mobile>
<Balance>83.594</Balance>
<VirtualBalance>14.949</VirtualBalance>
<SMSCredits>94</SMSCredits>
<NumberCount>70</NumberCount>
<Status>Active</Status>
<UnreadSystemEventsCount>2</UnreadSystemEventsCount>
<UnreadNoveroEventsCount>0</UnreadNoveroEventsCount>
</Response>
</NoveroResponse>