HI. I have 2 questions about loot locker basics
-
How to get all players list in loot locker leaderboard?
-
How to assign a unique id to player when submitting score?
If anyone can guide me that would be a great help
HI. I have 2 questions about loot locker basics
How to get all players list in loot locker leaderboard?
How to assign a unique id to player when submitting score?
If anyone can guide me that would be a great help
Hi, I have never used LootLocker or even heard of it so I’m not sure this is useful but according to its documentation :
Get Score List curl -X GET
Get list of members in rank range.
Result is sorted by rank ascending.
Maximum allowed members to query for
at a time is currently 2000.
If leaderboard is of type player a player will also be in the response.
If metadata is enabled for the leaderboard, that will be returned in the response.
So I guess the comand will be:
int leaderboardID = 123;
int count = 2000;
int after = 0;
LootLockerSDKManager.GetScoreListMain(leaderboardID, count, after, (response) =>
{
if (response.statusCode == 200) {
Debug.Log("Successful");
} else {
Debug.Log("failed: " + response.Error);
}
});