Documentation

API /content/{contentId}

ThoughtFarmer REST API Method: /content/{contentId}

Gets a content page from the ThoughtFarmer API by the content id. eg. 1234

URL:
http://yourserver.com/api/content/{contentId}
http://yourserver.com/api/2.0/content/{contentId}

Response Formats:
xml,json

HTTP Method(s):
GET

Requires Authentication:
true, user making call must pass a valid token parameter and must be able to view the content being requested

Parameters:

Parameter Type Description
contentId int Required. The content id of the page to retrieve
token string Required. A valid token authentication parameter
Response Status Codes:
200 - Success
401 - Token parameter is invalid
404 - Content page not found

Example request
GET http://yourserver.com/api/content/{contentId}
{
   "AbbreviatedTitle":[
      {
         "Key":"en",
         "Value":""
      }
   ],
   "ContentId":4280,
   "CreatorId":8,
   "DateModified":"\/Date(1319090642000-0700)\/",
   "DatePosted":"\/Date(1319090641887-0700)\/",
   "DatePublished":"\/Date(1319090641883-0700)\/",
   "GrandParentId":2911,
   "LastModifiedBy":"...",
   "ModifiedId":8,
   "OwnerId":8,
   "ParentId":1254,
   "PermissionIsView":true,
   "PermissionIsEdit":true,
   "Summary":[
      {
         "Key":"en",
         "Value":""
      }
   ],
   "Title":[
      {
         "Key":"en",
         "Value":"..."
      }
   ],
   "TreePath":"...",
   "TreePathText":"...",
   "ViewTypes":[
      7,
      27
   ],
   "Body":[
      {
         "Key":"en",
         "Value":"..."
      }
   ],
   "Group":null,
   "IsGroup":false
}