This GitHub repository provides public access to sample programs that demonstrate how you can programmatically submit requests to our PDF Rest API.
An API key is required to run these samples. For more information, including how to obtain a free API key, please visit our website.
POST requests require an API key. To apply your API key, you must include it in your requests as a header called Api-Key
.
Before running each sample program, look for a comment that reads:
Place your api key here
and replace xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
with your API key.
Each subdirectory includes a get-resource-id-endpoint
sample program that you can run to retrieve your output files.
Before running the sample program, look for a comment that reads:
place resource uuid here
and replace xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
with the resource UUID. You may also wish to update the variable containing the output file name before sending your GET request.
Below are instructions for running a sample in each language included in this repository.
Using Node 14 or greater:
cd Node/
npm install node-fetch
(need only run once)node name-of-sample-program.js
cd PHP/
php name-of-sample-program.php
Using Python3:
cd Python/
python name-of-sample-program.py