Developers
agnieszka_zacher
—
2015-11-16T02:51:44-05:00 —
#1
Hello, I want to get my leaderboard and everytime I need to pass player_id if not I get an error. Is it possible to receive data from leaderboard without passing player_id?
peter_john
—
2015-11-16T08:13:05-05:00 —
#2
Hi Agnieszka,
Thaking you for taking time to ask this question. Currently the leaderboard route requires a player_id
parameter as it is a part of the runtime. You can maybe create a extra dummy player who won't be used at all and pass that player's id instead and then you should be able to get the leaderboard.
Regards,
Peter
petr_mlcoch
—
2016-05-17T08:31:14-04:00 —
#3
Can You, please, update API docs accordingly?
For /runtime/leaderboards
there are no required fields (and Try It work without directly adding player_id
).
For /runtime/leaderboards/:leaderboard_id
there are required fields but player_id is not between them (and Try It work without directly adding player_id
).
IMHO adding dependecy on player for leaderboard (which does not change between players) is strange, very strange.
peter_john
—
2016-05-18T04:02:44-04:00 —
#4
Hi Petr,
Thaking you for taking time to ask this question. The Try It page that you see in the api docs asks you to select a player when you are viewing the runtime routes, so that when you try each api route it passes the player_id parameter as the id of the selected player automatically so that you don't need to do it yourself.
But if you are using the API externally then you must pass the player_id parameter in all runtime routes
Regards,
Peter