ePages 7.19.0 - DE_EPAGES/USPS/API/WebServices/Base/APIcaller.pm

Package DE_EPAGES::USPS::API::WebServices::Base::APIcaller

It processes (XML) requests into USPS Web Services APIs and get (XML) responses

Functions

call
new

call

launches HTTP calls to USPS web services

Syntax
$response = $self->call();
Input
$request (string)
XML string request
Return
$response (string)
XML string response

new

Creates a new APIcaller object for the API USPS Web Service.

Syntax
$APIcaller = DE_EPAGES::USPS::API::WebServices::Base::APIcaller->new($APIdll, $APItag, $URL);
Input
$APIdll (string)
API dll to be used in the call
$APItag (string)
API tag to be used in the call
$URL (string)
URL to be called
$Client (object)
Remote Client object -only used for mocking-
Return
$APIcaller (object)
APIcaller object