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: WBhkK_BJCkVqHnyPyOpKDQ
Client: Se4Fc99mYh-IHOAjP6QYTQ
Uid: adolfo@labadie.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: WBhkK_BJCkVqHnyPyOpKDQ" \
	-H "Client: Se4Fc99mYh-IHOAjP6QYTQ" \
	-H "Uid: adolfo@labadie.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=NlA3a0UwSUJGVk5kTjVuWHpTSFNpN0VVMnI4ZyttdVlvMTJ1ZkpUWWZwZkJoa3hjOXE3NkcyVGJwNFhaRnBWN0ZGZTZ5VVRWMDF5M2o0bTl4RFYvaklHN0tIdEdtdUNBWVpMNFBKaHAxUkpVTitTYk1VdkdZTTRmaVJQV2FpeDBtVVZxdmF1M1BzTExOQUMrLzFRRkdya25kZkkwQmtVTVRHak9tQlBiUUlQTlc0WjI3WXhwT1FacDIxOWpITG9uLS13aGRyWGVFbDJmSUFLcFJFZFdPaU5nPT0%3D--648b52230f857aaabed77a209e911b9483e52093; path=/; HttpOnly
Vary: Origin
ETag: W/"b04ced3c72a433d47ac00472ab7b7630"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 9b96ca51-ac3c-4a99-b82f-b0014754f17c
X-Runtime: 0.124244
Content-Length: 1830

Status

200 OK

Body

[
  {
    "id": 457,
    "trackable_type": "Like",
    "activity": "like.create",
    "privacy": "public",
    "recipient_type": "LearningObject",
    "parameters": {
    },
    "created_at": "2019-03-08T13:42:28.157Z",
    "owner": {
      "id": 227,
      "email": "adolfo@labadie.name",
      "provider": "email",
      "cpf": null,
      "name": "Srta. Vicente Barbosa",
      "description": "Explicabo qui est amet culpa qui fugiat.",
      "submitter_request": "default",
      "education": "Cupiditate quaerat temporibus sit voluptatibus fuga architecto.",
      "score": 0.0,
      "cover": "",
      "role_ids": [
        1,
        1
      ],
      "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": "2019-03-08T13:42:27.776Z",
      "updated_at": "2019-03-08T13:42:27.869Z",
      "terms_accepted_at": null
    },
    "recipient": {
      "id": 26,
      "name": "LearningObject 26",
      "description": "Pariatur iste officia ut nesciunt recusandae omnis. Et voluptas sint a minus tempora aut. Quo earum ea consequuntur.",
      "author": "Srta. Arthur Barros",
      "curator": null,
      "thumbnail": null,
      "object_type": "Apresentação",
      "language": {
        "id": 1,
        "name": "Português",
        "created_at": "2019-03-08T13:42:17.259Z",
        "updated_at": "2019-03-08T13:42:17.259Z",
        "code": "pt"
      },
      "default_attachment_location": null,
      "default_attachment_id": null,
      "default_mime_type": null,
      "score": 0.213591494565023,
      "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": "2019-03-08T13:42:27.899Z",
      "published_at": null,
      "terms_of_service": null,
      "updated_at": "2019-03-08T13:42:27.899Z",
      "magnetlink": null
    },
    "trackable": {
      "id": 2,
      "likeable_type": "LearningObject",
      "likeable_id": 26,
      "user_id": 227,
      "created_at": "2019-03-08T13:42:28.152Z",
      "updated_at": "2019-03-08T13:42:28.152Z"
    }
  }
]