NAME

SelectPdf::UsageClient - Get usage details for SelectPdf Online API.

METHODS

new( $apiKey )

Construct the Usage client.

my $client = SelectPdf::UsageClient->new($apiKey);

Parameters:

- $apiKey API Key.

getUsage( $getHistory )

Get API usage information with history, if specified.

my $client = SelectPdf::UsageClient->new($apiKey);
$usageInfo = $client->getUsage($getHistory);
print("Conversions remained this month: ". $usageInfo->{"available"});

Parameters:

- $getHistory Get history or not.

Returns:

- Usage information.