getActivityCounters( )


Retrieves activity counters for the specified site member, including all public counters and any private counters owned by the authenticated caller.

Note: Make sure to pass a memberId and not a contactId to identify the member. Any relationship between a member's memberId and contactId is coincidental.

Permissions
Manage Activity Counters
Read Activity Counters
Learn more about app permissions.
Method Declaration
Copy
function getActivityCounters(
  memberId: string,
): Promise<GetActivityCountersResponse>;
Method Parameters
memberIdstringRequired

Member ID whose counters will be returned.

Returns
Return Type:Promise<GetActivityCountersResponse>
JavaScript
import { activityCounters } from "@wix/activity-counters"; async function getActivityCounters(memberId) { const response = await activityCounters.getActivityCounters(memberId); }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?