question

brendan avatar image
brendan asked

Search player on leaderboard

inesmoital
started a topic on Mon, 06 April 2015 at 10:29 AM

Hello,

Is it possible to search for a specific player position on a leaderboard using an api call? I want my players to be able to search for other players positions on the leaderboard.

Thanks

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
brendan avatar image
brendan answered

1 Comment
Brendan Vanous said on Mon, 06 April 2015 at 11:32 AM

Right now, the Client API includes calls to retrieve leaderboards and statistics based upon the current user and his or her friends (or a general position in the leaderboard), but it doesn't provide for querying based upon an arbitrary PlayFab ID or username. In your scenario, would players be typing in usernames to find entries or doing something else?

If you have the PlayFab IDs in the client (for example, if you're tracking on players the current user has played), you could do this by making the call in Cloud Script, using the Server API version of the method (https://api.playfab.com/Documentation/Server/method/GetLeaderboardAroundUser).

Brendan

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.