« Back to Documentation Overview

templateInfo – v1.3

 templateInfo(string apikey, int tid, string type)

Pull details for a specific template to help support editing

Section
Template Related
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
arraydefault_contentthe default content broken down into the named editable sections for the template - dependant upon template, so not documented
arraysectionsthe valid editable section names - dependant upon template, so not documented
stringsourcethe full source of the template as if you exported it via our template editor
stringpreviewsimilar to the source, but the rendered version of the source from our popup preview