Leaderboard
Last updated
Last updated
Reminder: if you are using an app/client ID in sandbox, you must use sandbox.motar.io
as the endpoint for your requests. Requests to api.motar.io
with a sandbox client ID will fail!
GET
https://api.motar.io/leaderboard/v1
Returns leaderboard entries for your app using category filters.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
GET
https://api.motar.io/leaderboard/v1/rank
Returns a leaderboard entry and the rank of a specific user.
PUT
https://api.motar.io/leaderboard/v1
Adds or updates the leaderboard entry for the logged-in user.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
limit
integer
Number of results to return per page.
page
integer
Results page to return.
categories
array
Leaderboard categories to return. Can be an array or a comma-seperated string.
Authorization
string
Auth token generated by user login.
Authorization
string
Auth token generated by user login.
categories
string
Leaderboard categories to return. Can be an array or a comma-seperated string.
user
string
User ID of the user to search for. If omitted the API will return the rank of the querying user.
categories
array
Leaderboard categories to return. Can be an array or a comma-separated string. If an entry already exists for this user and these categories, it will be updated with the new score. Otherwise as new entry will be created.
score
integer
A numeric score indicator generated by your app.
Authorization
string
Auth token generated by user login.