Documentation

/content/{id}/activity [GET]

ThoughtFarmer REST API Method: /content/{id}/activity [GET]

Retrieves latest 100 activity records for a given content page (and any child pages).

URL:
http://yourserver.com/api/content/{id}/activity

Response Formats:
JSON, XML

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
id int Required. The content id of the page
token string Required. A valid token authentication parameter
Response Status Codes:
200 - Success
401 - Token parameter is invalid
404 - Content page not found

Example request
GET http://yourserver.com/api/content/{id}/activity
[
    {
        "userId": 189,
        "contentId": 9344,
        "activityId": 23465,
        "activityType": "ChangedSecurityPermissions",
        "message": "<a class=\"tf-activity-username tf-miniprofile-user\" href=\"/content/1073\" data-userid=\"189\" title=\"Mr. asdfasfd Criddle\">Mr. asdfasfd Criddle</a><span><abbr class=\"timeago\" title=\"2016-02-24T23:14:56Z\">2 hours ago</abbr></span><div class=\"activity-message\"> changed the security permissions on <a  href=\"/content/9344\">Test with Activity</a></div>",
        "dateCreated": "2016-02-24T23:14:56.31"
    },
    {
        "userId": 189,
        "contentId": 9356,
        "activityId": 21769,
        "activityType": "CreatedPage",
        "message": "<a class=\"tf-activity-username tf-miniprofile-user\" href=\"/content/1073\" data-userid=\"189\" title=\"Mr. asdfasfd Criddle\">Mr. asdfasfd Criddle</a><span><abbr class=\"timeago\" title=\"2016-02-23T19:18:47Z\">1 day ago</abbr></span><div class=\"activity-message\"> created the page <a  href=\"/content/9356\">asdfasdf</a></div>",
        "dateCreated": "2016-02-23T19:18:47.893"
    },
    {
        "userId": 189,
        "contentId": 9356,
        "activityId": 21768,
        "activityType": "FollowedPage",
        "message": "<a class=\"tf-activity-username tf-miniprofile-user\" href=\"/content/1073\" data-userid=\"189\" title=\"Mr. asdfasfd Criddle\">Mr. asdfasfd Criddle</a><span><abbr class=\"timeago\" title=\"2016-02-23T19:18:47Z\">1 day ago</abbr></span><div class=\"activity-message\"> is following the page <a  href=\"/content/9356\">asdfasdf</a></div>",
        "dateCreated": "2016-02-23T19:18:47.89"
    }
]