Documentation

API /document/{contentId}

ThoughtFarmer REST API Method: /document/{contentId}

Gets a document page from the ThoughtFarmer API by the content id.

URL:
http://yourserver.com/api/document/{contentId}
http://yourserver.com/api/2.0/document/{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 the document page to retrieve
token string Required. A valid token authentication parameter
Response Status Codes:
200 - Success
401 - Token parameter is invalid
404 - If a content id was not found
409 - If a content id was not a DocumentPage

Example request
GET http://yourserver.com/api/document/{contentId}?token={token}
{
   "AbbreviatedTitle":[
      {
         "Key":"en",
         "Value":""
      }
   ],
   "Body":[
      {
         "Key":"en",
         "Value":""
      }
   ],
   "ContentId":64,
   "CreatorId":5,
   "Data":[
      ...
   ],
   "DateModified":"/Date(1188448372010-0700)/",
   "DatePosted":"/Date(1188448372010-0700)/",
   "DatePublished":"/Date(1188448372010-0700)/",
   "DocumentContentType":"application/download",
   "FileName":"06_06_07.pdf",
   "FileSize":9908,
   "GrandParentId":247,
   "LastModifiedBy":"Updated Aug 29, 2007 by Sandra Fipke",
   "ModifiedId":13,
   "OwnerId":5,
   "ParentId":58,
   "Summary":[
      {
         "Key":"en",
         "Value":""
      }
   ],
   "Title":[
      {
         "Key":"en",
         "Value":"Pricelist"
      }
   ],
   "TreePath":"",
   "ViewTypes":[
      15,
      18
   ]
}