« Back to Documentation OverviewtemplateInfo – v1.3
templateInfo(string apikey, int tid, string type)
Pull details for a specific template to help support editing
| Parameters | | apikey | a valid API Key for your user account. Get by visiting your API dashboard |
| tid | the template id - get from templates() |
| type | optional - the template type to load - one of 'user', 'gallery', 'base', defaults to user. |
| Returns | | array |
an array of info to be used when editing
| array | default_content | the default content broken down into the named editable sections for the template - dependant upon template, so not documented
| | array | sections | the valid editable section names - dependant upon template, so not documented
| | string | source | the full source of the template as if you exported it via our template editor
| | string | preview | similar to the source, but the rendered version of the source from our popup preview
| |