Documentation

API /document/getAll/{contentIds}

ThoughtFarmer REST API Method: /document/getAll/{contentIds}

Gets a list of document pages from the ThoughtFarmer API by the content ids. eg. 1234, 1235, 1236.

URL:
http://yourserver.com/api/document/getAll/{contentIds}

http://yourserver.com/api/2.0/document/getAll/{contentIds}


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
contentIds string Required. The comma-separated list of content ids of the document pages to retrieve
token string Required. A valid token authentication parameter
Response Status Codes:
200 - Success
401 - Token parameter is invalid
404 - If no content was found to be returned.

Example request
GET http://yourserver.com/api/document/getAll/{contentIds}
[
   {
      "AbbreviatedTitle":[
         {
            "Key":"en",
            "Value":""
         }
      ],
      "ContentId":4285,
      "CreatorId":8,
      "DateModified":"\/Date(1319245990413-0700)\/",
      "DatePosted":"\/Date(1319245990327-0700)\/",
      "DatePublished":"\/Date(1319245990323-0700)\/",
      "GrandParentId":3,
      "LastModifiedBy":"...",
      "ModifiedId":8,
      "OwnerId":8,
      "ParentId":19,
      "Summary":[
         {
            "Key":"en",
            "Value":""
         }
      ],
      "Title":[
         {
            "Key":"en",
            "Value":"MD Test doc.doc"
         }
      ],
      "TreePath":"...",
      "ViewTypes":[
         15,
         18
      ],
      "Body":[
         {
            "Key":"en",
            "Value":""
         }
      ],
      "Data":[

  ],
  "DocumentContentType":"application\/msword",
  "FileName":"MD Test doc.doc",
  "FileSize":39936

} ]