Activities API

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

Showing logged user activities

GET /v1/activities/me

Request

Headers

Accept: application/json
Content-Type: application/json
Access-Token: XRfv6INgYBbd8b5D6tmbQg
Client: XanmIp2SfgkMNuiV_iOe5Q
Uid: zachariah_schaefer@vandervort.name
Host: example.org
Cookie: 

Route

GET /v1/activities/me

cURL

curl -g "https://api.portalmec.c3sl.ufpr.br/v1/activities/me" -X GET \
	-H "Accept: application/json" \
	-H "Content-Type: application/json" \
	-H "Access-Token: XRfv6INgYBbd8b5D6tmbQg" \
	-H "Client: XanmIp2SfgkMNuiV_iOe5Q" \
	-H "Uid: zachariah_schaefer@vandervort.name"

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=TExnbmhpU09IU2d5aUprNHU0STRaV0Y2TEJpdnR5Q2VjUlVOdGlTMUMyOXgwVm1xN25oZVlFM3h4cTlUTW9DVG1kRUNlSG1kS01WTzY2K3E5OUw4ZWtiK243VEMrS0Vqd2YwNW4zanovY2RtYy9rcEV4TUQrNzZHaklSUlFlM1ZjZTVqRVZYcG9rUkszcUxSQWxwT1l4dHJiS3JTNnhJUXY0R250UHZxUk1GZmdJT3dWbGZlMUlkUlBjY24wbzhZLS1INDJQRStEbkJ5bmljQzlURys0Q2lRPT0%3D--2092a8e8e3ad4f404ffcac5bd24f5c42a894c9d1; path=/; HttpOnly
Vary: Origin
ETag: W/"6b4cb4acba337569dad03f6cc361581a"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 8aa27dd4-4ba1-4f87-94e0-82b606250cf4
X-Runtime: 0.129373
Content-Length: 2012

Status

200 OK

Body

[
  {
    "id": 457,
    "trackable_type": "Like",
    "activity": "like.create",
    "privacy": "public",
    "viewed": false,
    "recipient_type": "LearningObject",
    "parameters": {
    },
    "created_at": "2021-02-25T14:03:54.855Z",
    "owner": {
      "id": 227,
      "email": "zachariah_schaefer@vandervort.name",
      "provider": "email",
      "cpf": null,
      "name": "VĂ­ctor Mendes",
      "description": "A et et iure distinctio fuga ea optio.",
      "submitter_request": "default",
      "education": "Id voluptatem aliquid voluptatem minima incidunt.",
      "score": 0.0,
      "cover": "",
      "role_ids": [
        8,
        8
      ],
      "institution_ids": [

      ],
      "avatar": "",
      "dspace_url": null,
      "dspace_handle": null,
      "dspace_sets": [

      ],
      "likes_count": 1,
      "followed": false,
      "complained": false,
      "follows_count": 0,
      "learning_objects_count": 0,
      "collections_count": 0,
      "created_at": "2021-02-25T14:03:54.399Z",
      "updated_at": "2021-02-25T14:03:54.484Z",
      "terms_accepted_at": null,
      "state": "active",
      "times_blocked": 0,
      "suspended_at": null,
      "reactivated_at": null,
      "ask_teacher_question": true
    },
    "recipient": {
      "id": 26,
      "name": "LearningObject 26",
      "description": "Sit iusto et corrupti et veritatis qui. Doloremque placeat unde blanditiis voluptatem. Possimus aut fugit. Voluptatem est nihil. Sapiente molestiae quos et reprehenderit architecto qui.",
      "author": "Thiago Porto",
      "curator": null,
      "thumbnail": null,
      "object_type": "Jogo",
      "language": [
        {
          "id": 8,
          "name": "Russo",
          "created_at": "2021-02-25T14:03:40.737Z",
          "updated_at": "2021-02-25T14:03:40.737Z",
          "code": "ru"
        }
      ],
      "default_attachment_location": null,
      "default_attachment_id": null,
      "submission_id": null,
      "default_mime_type": null,
      "score": 0.295687758568253,
      "state": "published",
      "review_average": 0.0,
      "link": null,
      "software": null,
      "license": null,
      "liked": true,
      "likes_count": 1,
      "downloads_count": 0,
      "views_count": 0,
      "reviewed": false,
      "complained": false,
      "shares_count": 0,
      "created_at": "2021-02-25T14:03:54.529Z",
      "published_at": null,
      "terms_of_service": null,
      "updated_at": "2021-02-25T14:03:54.529Z",
      "magnetlink": null
    },
    "trackable": {
      "id": 2,
      "likeable_type": "LearningObject",
      "likeable_id": 26,
      "user_id": 227,
      "created_at": "2021-02-25T14:03:54.849Z",
      "updated_at": "2021-02-25T14:03:54.849Z"
    }
  }
]