Hi!
How can I call multiple statistics and leaderboard position from cloud script? I need to display into my menu but I can't find any example
thanksss
Hi!
How can I call multiple statistics and leaderboard position from cloud script? I need to display into my menu but I can't find any example
thanksss
May I ask what's the scenario that you require Cloud Script to call this API? GetLeaderboard has Client API and is able to be called in the game client directly.
Here is a sample of getting leaderboard -- Tournaments & Leaderboards quickstart - PlayFab | Microsoft Docs
On my game menu I display 3 levels on each section/page.
Because of this, I need to call 3 different leaderboards to get the relative stats (position, time and score) and it's probably better to avoid three simultaneous API call. Is there any way I can set up this in cloud script?
I think 3 APIs should work fine. There is upper bound limit of 100 calls per 2 minutes. As long as it is below this threshold, it should work fine. Besides, If you refer to the request body in Get Leaderboard document, you may define "ProfileConstraints" to retrieve additonal profile data for each player.
7 People are following this question.