Sign In Register

How can we help you today?

Start a new topic
Answered

Get user data from all leaderboards

Hello guys, I am using the Unity SDK and need some help: 

How do I get data from the logged user in all the leaderboards? 

How do I get the data from friends, excluding the logged user?

Thank you very much.


Best Answer

Hi Valnei,


A GetLeaderboardEntriesRequest will return the high scores for a user on all the Leaderboards they have posted scores on. You can supply a playerId to get the entries for a specific player or remove that parameter to perform the request on the current player. You can read more about this request here. A SocialLeaderboardDataRequest will return the Leaderboard entries of players that are game friends with the current player. You need to supply a Leaderboard shortCode with this request. You can read more about this one here.


Thanks,

Liam


Thank you for the help!

Answer

Hi Valnei,


A GetLeaderboardEntriesRequest will return the high scores for a user on all the Leaderboards they have posted scores on. You can supply a playerId to get the entries for a specific player or remove that parameter to perform the request on the current player. You can read more about this request here. A SocialLeaderboardDataRequest will return the Leaderboard entries of players that are game friends with the current player. You need to supply a Leaderboard shortCode with this request. You can read more about this one here.


Thanks,

Liam

Login to post a comment