EncodeAndGet

Description

Download a Fax message. The faxes are saved either TIFF or PDF depending on the number configuration. They are encapsulated XML CDATA and are base64 encoded.

Parameters

string CDRUIDThe unique identifier for the Call Data Record associated with the Fax. This can be retrieved from NoveroCDR::GetCDRs

Request

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

Response

<?xml version="1.0"?>
<NoveroResponse>
    <Response target="NoveroEvents" name="EncodeAndGet" Code="200" RequestId="TestRequest">
        <Fax><![CDATA[ * Fax Image/PDF Data * ]]></Fax>
    </Response>
</NoveroResponse>