NAME
SelectPdf::AsyncJobClient - Get the result of an asynchronous call.
METHODS
new( $apiKey, $JobId )
Construct the async job client.
my $client = SelectPdf::AsyncJobClient->new($apiKey, $jobId);
Parameters:
- $apiKey API Key.
- $jobId Job ID.
getResult
Get result of the asynchronous job.
Returns:
- Byte array containing the resulted file if the job is finished. Returns 'undef' if the job is still running.
finished
Check if asynchronous job is finished.
Returns:
- True if job finished.