Get Activity Feed - PurposeOpen/Platform GitHub Wiki
GET /api/:locale/movements/:movement_id/activity(.:format)
Retrieves the activity feed for the requested Content Module ID if provided, otherwise it retrieves the activity feed for the whole movement
Parameters | |
---|---|
movement_idMandatory
|
Movement Id for which we want to retrieve the Activity Feed |
localeMandatory
|
Activity Feed localized version |
module_idOptional
|
Module Id for which we want to retrieve the Activity Feed |
typeOptional
|
Activity Type, must be either 'comments' or empty / not sent. If ''comments'', retrieves only user activities which contain a comment |
200
if Successful
Field | Description |
---|---|
Feeds's fields i.e.: id, html, timestamp , etc. |
See Feed |
GET /api/en/movements/test-movement/activity.json
Content-Type: application/x-www-form-urlencoded
module_id=1234&type=comments
200 (OK)
Content-Type: application/json
[{
"id": 1769193,
"html": "<span class=\"name\">D999</span>, Virgin Islands, British<br/><a data-action-name=\"c3-action-test\" data-page-name=\"c3-action-test-page\">C3 HEADER!</a>",
"timestamp": "Fri, 15 Feb 2013 13:44:46 GMT",
"timestamp_in_words": "about 1 month ago",
"comment": null,
"first_name": "John",
"last_name": "Doe",
"country_iso": "vg",
"country": "Virgin Islands, British"
},...
]