Documentation

API /activity/all/{fromActivityId}

ThoughtFarmer REST API Method: /activity/all/{fromActivityId}

Gets the activity from all sources for the authenticated user. Returns the top ten items from the activity after the fromActivityId value.

URL:
http://yourserver.com/api/activity/all/{fromActivityId}

http://yourserver.com/api/2.0/activity/all/{fromActivityId}


Response Formats:
xml,json

HTTP Method(s):
GET

Requires Authentication:
true, user making call must pass a valid token parameter

Parameters:

Parameter Type Description
fromActivityId int Required. The next activity to get the following ten items from. If this value is not supplied, then the top ten items are returned.
token string Required. A valid token authentication parameter
Response Status Codes:
200 - Success
401 - Token parameter is invalid

Example request
GET http://yourserver.com/api/activity/all/{fromActivityId}
{
   "Items":[
      {
         "CreatorId":41,
         "CreatorName":"Tim S.",
         "DateCreated":"\/Date(1320240075950-0700)\/",
         "HiddenMessages":[

     ],
     "PhotoUrl":"...",
     "StartingActivityId":17652,
     "TotalHiddenMessages":0,
     "VisibleMessages":[...]
  },
  {
     "CreatorId":41,
     "CreatorName":"Tim S.",
     "DateCreated":"\/Date(1320218252627-0700)\/",
     "HiddenMessages":[

     ],
     "PhotoUrl":"...",
     "StartingActivityId":17648,
     "TotalHiddenMessages":0,
     "VisibleMessages":[...]
  }

], "NextActivityId":17594 }