API reference: Templates documents the function signatures, parameters, return values, and error behavior of the Elaine HTTP API.
Function availability depends on the Elaine release and enabled features. Authenticate HTTP requests with an Elaine-issued Bearer JWT.
Function overview
| array|integer | api_getTemplateContent ( int $template_id ) |
| Returns the content of the template $template_id. |
| array|integer | api_getTemplates () |
| Returns an array of all templates with the ID as key and the name as value. |
Functions
api_getTemplateContent
array|integer api_getTemplateContent( int $template_id )
SINCE 5.11.4 Returns the content of the template $template_id.Parameters
| int | $template_id | Template ID |
Return Value
| array|integer | Contents of template |
api_getTemplates ()
array|integer api_getTemplates ()
SINCE 5.11.4 Returns an array of all templates with the ID as key and the name as value.Return Value
| array|integer | Template list |