CROWDMANAGERCROWDMANAGER

LeaderboardSummary

Description

A LeaderboardSummary resource represents an information about current user's position in all relevant leaderboards.


Fields

| Name | Description | Type/Supported Values | | --- | --- | --- | --- | | Name | Name of the leaderboard. | string | | LeaderboardIntervalId | Represents the id of interval inside Leaderboard season. Might be empty indicating leaderboard is on global level. | nullable long | | DemographicValue| Value of custom authentication field user has chosen that corresponds to specific leaderboard. Can be null indicating that leaderboard is not demographic specific. | string | | Score | Score of the user in the current season. | decimal | | Position | Current position of the user in the leaderboard. | long | | PreviousPosition | Previous position of the user in the leaderboard. | long? |

Get LeaderboardSummary

Endpoint

GET https://api.crowdmanager.io/userapi/v1/{orgId}/mypage/leaderboards/leaderboardsummary

Example

Request

GET https://api.crowdmanager.io/userapi/v1/{orgId}/mypage/leaderboards/leaderboardsummary
Authorization: Bearer aaabbbccc111222333
Content-Type: application/json

Response

200 OK 
[{    
    "name": "Global",
    "leaderboardIntervalId": null,
    "demographicValue": null,
    "score": 23.22,
    "position": 1,
    "previousPosition": 2
}, {
    "name": "Week 22",
    "leaderboardIntervalId": 123,
    "demographicValue": null,
    "score": 23.22,
    "position": 1,
    "previousPosition": null
}, {
    "name": "July",
    "leaderboardIntervalId": 124,
    "demographicValue": "Rosenborg",
    "score": 23.22,
    "position": 1,
    "previousPosition": 2
}]