Documentation

API /activity/groups/{fromActivityId}

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

Gets the activity from all the groups that the authenticated user belongs to. Returns the top ten items starting from the activity after the fromActivityId value.

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

http://yourserver.com/api/1.0/activity/groups/{fromActivityId}


Response Formats:
xml,json

HTTP Method(s):
GET

Requires Authentication:
true, user making call must be able to view the activities being requested

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.
Response Status Codes:
200 - Success

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

     ],
     "PhotoUrl":"\/imagethumb\/67800370000\/380\/50x50\/True\/Tim.jpg",
     "StartingActivityId":17619,
     "TotalHiddenMessages":0,
     "VisibleMessages":[...]
  },
  {
     "CreatorId":4,
     "CreatorName":"Darren G.",
     "DateCreated":"\/Date(1303448201087-0700)\/",
     "HiddenMessages":[

     ],
     "PhotoUrl":"\/imagethumb\/217655900000\/8\/50x50\/True\/darren.jpg",
     "StartingActivityId":16472,
     "TotalHiddenMessages":0,
     "VisibleMessages":[...]
  },
  {
     "CreatorId":98,
     "CreatorName":"Ghada V.",
     "DateCreated":"\/Date(1290676399817-0800)\/",
     "HiddenMessages":[

     ],
     "PhotoUrl":"\/assets\/img\/icons\/no_profile_image_50.png",
     "StartingActivityId":15202,
     "TotalHiddenMessages":0,
     "VisibleMessages":[...]
  },
  {
     "CreatorId":72,
     "CreatorName":"Carolien",
     "DateCreated":"\/Date(1285887793007-0700)\/",
     "HiddenMessages":[

     ],
     "PhotoUrl":"\/imagethumb\/210234030000\/509\/50x50\/True\/caro.JPG",
     "StartingActivityId":14925,
     "TotalHiddenMessages":0,
     "VisibleMessages":[...]
  },
  {
     "CreatorId":36,
     "CreatorName":"Richard M.",
     "DateCreated":"\/Date(1264401705430-0800)\/",
     "HiddenMessages":[

     ],
     "PhotoUrl":"\/imagethumb\/764635530000\/155\/50x50\/True\/richard_macsimpson.png",
     "StartingActivityId":11230,
     "TotalHiddenMessages":0,
     "VisibleMessages":[...]
  },
  {
     "CreatorId":75,
     "CreatorName":"Isaac N.",
     "DateCreated":"\/Date(1263891686160-0800)\/",
     "HiddenMessages":[

     ],
     "PhotoUrl":"\/imagethumb\/693240300000\/497\/50x50\/True\/newton.jpg",
     "StartingActivityId":11073,
     "TotalHiddenMessages":0,
     "VisibleMessages":[...]
  },
  {
     "CreatorId":17,
     "CreatorName":"Jon W.",
     "DateCreated":"\/Date(1263299814770-0800)\/",
     "HiddenMessages":[

     ],
     "PhotoUrl":"\/imagethumb\/92639130000\/44\/50x50\/True\/AA044046_4.jpg",
     "StartingActivityId":10824,
     "TotalHiddenMessages":0,
     "VisibleMessages":[...]
  },
  {
     "CreatorId":82,
     "CreatorName":"Alfred N.",
     "DateCreated":"\/Date(1263020181380-0800)\/",
     "HiddenMessages":[

     ],
     "PhotoUrl":"\/imagethumb\/99864700000\/523\/50x50\/True\/alfred_nobel.jpg",
     "StartingActivityId":10767,
     "TotalHiddenMessages":0,
     "VisibleMessages":[...]
  }

] ,"NextActivityId":10598}