APITemplate.io
12 sites
No security coverage
This module provides a PHP client to interact with APITemplate.io's API for generating PDFs and images. It allows Drupal sites to programmatically create, merge, and list PDF templates using an API key and endpoint configured in the Drupal admin settings.
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:
- Create account at APITemplate.io; add at least 1 PDF template.
- Configure API endpoint + key at /admin/config/system/apitemplate-io.
- Inject service
'apitemplate_io.client'into a service/form/controller. - 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).
- 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.