question

Ray Ma avatar image
Ray Ma asked

How to get the current user position in a leaderboard sorting in ascending order?,How to get the current user position in a leaderboard sort by ascending order?

I am using Playfab and I want to get the current user position in a leaderboard sorting in ascending order.

Since the leaderboard does not support sorting in ascending order:

https://community.playfab.com/questions/47893/leaderboard-minimum-rank.html

And from this post I realize there is no API to get total number of entries in a Leaderboard:

https://community.playfab.com/questions/38373/how-do-you-get-total-number-of-entries-in-a-leader.html

How can I achieve getting the current user position in a leaderboard sort by ascending order?

,

I am using Playfab and I want to get the current user position in a leaderboard sorting in ascending order.

Since the leaderboard does not support sorting in ascending order:

https://community.playfab.com/questions/47893/leaderboard-minimum-rank.html

And from this post I realize there is no API to get total number of entries in a Leaderboard:

https://community.playfab.com/questions/38373/how-do-you-get-total-number-of-entries-in-a-leader.html

How can I achieve get the current user position in a leaderboard sort by ascending order?

Leaderboards and Statistics
10 |1200

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

Seth Du avatar image
Seth Du answered

You may use GetLeaderboardAroundPlayer API -- Player Data Management - Get Leaderboard Around Player - REST API (PlayFab Client) | Microsoft Docs. If you set MaxResultsCount as 1, it will return the caller's position only.

10 |1200

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

nws1gawr avatar image
nws1gawr answered

hello how to display the result in HTML, all request returns 404 error. Your documentation is so confusing

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.