List the members of a spot with their number of activities over a period of 366 days at most, the most active first by default. Every member of the spot (of the filtered groups and roles) is listed, whatever its status: the members without activity over the period have a count of 0. The list is sorted by number of activities or by last activity date of the member, ascending or descending.
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.
-
Only the members of one of these groups, with or without activity
-
Only the members having one of these roles and no custom role, with or without activity
-
The sort of the members: by number of activities over the period, or by date of their last activity (the members never active come last)
Values are
activityCountorlastActivityAt. Default value isactivityCount. -
The direction of the sort
Values are
ascordesc. Default value isdesc. -
The page number in a paginated set of results
Minimum value is
1. Default value is1. -
The limit of results to be returned per page
Minimum value is
1, maximum value is250. Default value is10.
curl \
--request GET 'https://openapi.meltingspot.io/v1/activities/members'
{
"items": [
{
"member": {
"id": "string",
"firstname": "string",
"lastname": "string",
"role": "Member",
"customRoleId": "string"
},
"activityCount": 42,
"lastActivityAt": 42
}
],
"total": 42
}