Documentation

/customportlets/{templateId} [GET]

ThoughtFarmer REST API Method: /customportlets/{templateId} [GET]

Retrieve the template data for a custom portlet.
 
URL:
http://yourserver.com/api/customportlets/{templateId}

Response Formats:
JSON, XML

HTTP Method(s):
GET
 
Requires Authentication:
true, user making call must pass a valid token parameter

Parameters:

Parameter Type Description 
token string Required. A valid token authentication parameter
templateId int Required. The portlet template id.

Response Status Codes:
200 - Success
401 - Token parameter is invalid
403 - Insufficient permissions to manage custom portlets
404 - templateId not found

Example request
GET http://yourserver.com/api/customportlets/641
{
    "portletTemplateId": 1,
    "serverTemplate": "<div>SERVER_TEMPLATE</div>",
    "clientTemplate": "<p>CLIENT_TEMPLATE</p>",
    "styleTemplate": ".my-element { display: 'block'; }",
    "isCurrent": true
}