List the activities of the members of a spot over a period of 31 days at most, from the most recent to the oldest. The list is read page by page with a cursor: pass the nextCursor of a page as cursor, with the same filters, to read the next one.
Query parameters
-
Period of the activities. Both bounds are required (occurredAt[after] and occurredAt[before]) and included.
-
Filter on the type of the events. Every type when omitted.
-
The number of activities to return
Minimum value is
1, maximum value is250. Default value is10. -
The cursor returned as nextCursor by the previous page, to pass with the same filters. Omit it to read the first page.
GET
/v1/activities
curl \
--request GET 'https://openapi.meltingspot.io/v1/activities'
Response examples (200)
{
"items": [
{
"id": "string",
"type": "ChannelJoined",
"occurredAt": 42,
"member": {
"id": "string",
"firstname": "string",
"lastname": "string",
"role": "Member",
"customRoleId": "string"
},
"recipient": {
"id": "string",
"firstname": "string",
"lastname": "string"
},
"live": {
"id": "string",
"title": "string"
},
"channel": {
"id": "string",
"title": "string"
},
"message": {
"id": "string",
"preview": "string"
},
"reactionEmoji": "string",
"document": {
"id": "string",
"title": "string",
"type": "string",
"link": "string"
},
"collection": {
"id": "string",
"title": "string"
},
"course": {
"id": "string",
"title": "string"
},
"courseStep": {
"id": "string",
"title": "string",
"type": "string",
"quizCorrectAnswersCount": 42,
"quizTotalQuestionsCount": 42
},
"topic": {
"id": "string",
"title": "string"
},
"forum": {
"id": "string",
"title": "string"
},
"voteScore": 42,
"learningPath": {
"id": "string",
"title": "string"
},
"roleplay": {
"id": "string",
"name": "string"
}
}
],
"nextCursor": "string"
}