Activities API

Users can see the activities of his followed collections and users.

Showing activities from a specific user

GET /v1/users/:id/activities

This method shows all activities from the logged user.

Request

Headers

Accept: application/json
Content-Type: application/json
Access-Token: Be4mjwmTqgTk9yKdFMTcuw
Client: YpNOxzEUsI2e-EEJfQPWpw
Uid: garth.heidenreich@creminfeest.biz
Host: example.org
Cookie: 

Route

GET /v1/users/1/activities

cURL

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: Be4mjwmTqgTk9yKdFMTcuw" \
	-H "Client: YpNOxzEUsI2e-EEJfQPWpw" \
	-H "Uid: garth.heidenreich@creminfeest.biz"

Response

Headers

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=aWJydEdrZ0NwRFFBU05xeVRPM3lpZVFsdnJDbFdHak9jNnRXL1lCNk1EVWlRMGZhb0lDMXJnTmZDM284OFlFUElRYzVyaDlXUXg4MkVvYm9Sa3lYTzIyeW9ka2d5amp3VVk5QjlOblRhNmdPdkRIVWo1eHZKbWVDTEtsNndYTUJOZ3oyejg2VytMMHJIV01wVk1ZdzZSZGhoRVRhZHlhNkk3MG9kanE0UzdPbU4wSkpWUjBiWGtxYTR6VjVWMGN2LS1UM2NIZmJHbEYwZ3JQNFlwRFZtbmNRPT0%3D--d3ee40c90bf1336e8160b0e82e5ecd535b7eadae; path=/; HttpOnly
Vary: Origin
ETag: W/"250805a9b900aec0a613b4f4a405479c"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: a005ef53-31d9-417a-86bc-c0b5abd846e4
X-Runtime: 0.159505
Content-Length: 1704

Status

200 OK

Body

[
  {
    "id": 680,
    "trackable_type": "Like",
    "activity": "like.create",
    "privacy": "public",
    "recipient_type": "LearningObject",
    "parameters": {
    },
    "created_at": "2019-03-08T13:42:32.613Z",
    "owner": {
      "id": 1,
      "email": null,
      "provider": "email",
      "cpf": null,
      "name": "admin",
      "description": null,
      "submitter_request": "default",
      "education": null,
      "score": 0.0,
      "cover": "",
      "role_ids": [
        1,
        3
      ],
      "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": "2019-03-08T13:42:17.060Z",
      "updated_at": "2019-03-08T13:42:17.060Z",
      "terms_accepted_at": null
    },
    "recipient": {
      "id": 39,
      "name": "LearningObject 39",
      "description": "Alias neque quos porro modi. Voluptates delectus molestiae laudantium maxime. Voluptate dicta itaque aliquam quaerat deleniti sunt aut.",
      "author": "Sra. Isabelly Farias",
      "curator": null,
      "thumbnail": null,
      "object_type": "Mapa",
      "language": {
        "id": 6,
        "name": "Italiano",
        "created_at": "2019-03-08T13:42:17.281Z",
        "updated_at": "2019-03-08T13:42:17.281Z",
        "code": "it"
      },
      "default_attachment_location": null,
      "default_attachment_id": null,
      "default_mime_type": null,
      "score": 0.378703119289052,
      "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": "2019-03-08T13:42:32.293Z",
      "published_at": null,
      "terms_of_service": null,
      "updated_at": "2019-03-08T13:42:32.293Z",
      "magnetlink": null
    },
    "trackable": {
      "id": 3,
      "likeable_type": "LearningObject",
      "likeable_id": 39,
      "user_id": 1,
      "created_at": "2019-03-08T13:42:32.607Z",
      "updated_at": "2019-03-08T13:42:32.607Z"
    }
  }
]