apitemplate_io
16 sites
No security coverage
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.