question

sahermohamed254 avatar image
sahermohamed254 asked

Get players currencies

I am using PlayFab.Client.Models.PlayerLeaderboardEntry to return the display name, what should I use to return the currency of that returned returned

Player Data
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

·
Seth Du avatar image
Seth Du answered

If you are requesting the statistics of a player, Leaderboard provides options to return components of players’ profiles. It is convenient to add ProfileConstraints flags in the GetLeaderBoardRequest (https://api.playfab.com/documentation/client/method/GetLeaderboard) to retrieve data you need.

Besides, we suggest you not calling additional APIs for each player your get from the leaderboard, please see Brendan’s replies here.

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.