This project is not covered by Drupal’s security advisory policy.

Simple PHP client to interact with APITemplate.io's REST API v2. APITemplate.io is a PDF and image generation service.

This is an API module, supporting a few operations. Usage:

  1. Create account at APITemplate.io; add at least 1 PDF template.
  2. Configure API endpoint + key at /admin/config/system/apitemplate-io.
  3. Inject service 'apitemplate_io.client' into a service/form/controller.
  4. Call any of the available API operations on the client: createPdf(), mergePdfs(), listTemplates(); passing the appropriate JSON-vars + query parameters (as relevant for the operation being called).
  5. Use the returned URL/data as needed: serve as direct download (see ApiTemplateClient::serveFile()), save to filesystem, etc.

The provided test tool also serves as an example for how to use the API client.

Supporting organizations: 
Initial development

Project information

Releases