Users can see the activities of his followed collections and users.
This method shows all activities from the logged user.
Accept: application/json Content-Type: application/json Access-Token: XxaYaxan5T01iagv9nN1vA Client: WSuGQD7wLpSf-UIQ9KsKnw Uid: bernard.mckenzie@hackett.com Host: example.org Cookie:
GET /v1/users/1/activities
curl -g "https://api.portalmec.c3sl.ufpr.br/v1/users/1/activities" -X GET \ -H "Accept: application/json" \ -H "Content-Type: application/json" \ -H "Access-Token: XxaYaxan5T01iagv9nN1vA" \ -H "Client: WSuGQD7wLpSf-UIQ9KsKnw" \ -H "Uid: bernard.mckenzie@hackett.com"
X-Frame-Options: SAMEORIGIN X-XSS-Protection: 1; mode=block X-Content-Type-Options: nosniff X-Total-Count: 1 Content-Type: application/json; charset=utf-8 Set-Cookie: _session_id=UFlRSWlFSzhPbGhUaFdvZ2ROWWZDYjlpWXdaMDh4dDVsemNsK3I2OFErN1BrWndDRWh3c2ZHMGtZd1BZbXUxa05HMnNvcHJBUzFhRm1YTGhzUzBwb2tqUkhjZTBZVTVjZHUzajhDRzRVdHhZUXFxM2hlZkRWTmNXM29kSHV4UWFYb2syTGlkWXdpRGQzTlhsczNVbGt3L3A0SEtobnM0UWxZbjI4WkFLcEN6VmpiMXRtNmJzOGlTbk9qa3lXTTdsLS1Rc2RsSXRsKzRsdDZHUVRXYzY5RURnPT0%3D--a17a59b57156e8b7fc1549d8b1a55d7893d80c29; path=/; HttpOnly Vary: Origin ETag: W/"ee5fd49f83f314394e4e75318b46aa67" Cache-Control: max-age=0, private, must-revalidate X-Request-Id: 91473b17-b301-43ea-bf27-1214261cd3db X-Runtime: 0.136628 Content-Length: 1796
200 OK
[ { "id": 680, "trackable_type": "Like", "activity": "like.create", "privacy": "public", "viewed": false, "recipient_type": "LearningObject", "parameters": { }, "created_at": "2021-02-25T14:03:59.997Z", "owner": { "id": 1, "email": null, "provider": "email", "cpf": null, "name": "admin", "description": null, "submitter_request": "default", "education": null, "score": 0.0, "cover": "", "role_ids": [ 3, 8 ], "institution_ids": [ ], "avatar": "", "dspace_url": null, "dspace_handle": null, "dspace_sets": null, "likes_count": 1, "followed": true, "complained": false, "follows_count": 1, "learning_objects_count": 0, "collections_count": 0, "created_at": "2021-02-25T14:03:39.784Z", "updated_at": "2021-02-25T14:03:39.784Z", "terms_accepted_at": null, "state": "active" }, "recipient": { "id": 39, "name": "LearningObject 39", "description": "Dignissimos ea magni debitis facere est quia. Laborum quas perspiciatis et neque iure. Velit minima doloribus. Aliquam libero quis debitis rerum sunt. Et non quia dignissimos.", "author": "Nicole Cruz", "curator": null, "thumbnail": null, "object_type": "Animação", "language": [ { "id": 9, "name": "Japonês", "created_at": "2021-02-25T14:03:40.747Z", "updated_at": "2021-02-25T14:03:40.747Z", "code": "jp" } ], "default_attachment_location": null, "default_attachment_id": null, "submission_id": null, "default_mime_type": null, "score": 0.708442999710824, "state": "published", "review_average": 0.0, "link": null, "software": null, "license": null, "liked": false, "likes_count": 1, "downloads_count": 0, "views_count": 0, "reviewed": false, "complained": false, "shares_count": 0, "created_at": "2021-02-25T14:03:59.639Z", "published_at": null, "terms_of_service": null, "updated_at": "2021-02-25T14:03:59.639Z", "magnetlink": null }, "trackable": { "id": 3, "likeable_type": "LearningObject", "likeable_id": 39, "user_id": 1, "created_at": "2021-02-25T14:03:59.991Z", "updated_at": "2021-02-25T14:03:59.991Z" } } ]