跳轉到主要內容
POST
Get Friend Leaderboard

授權

X-SecretKey
string
header
必填

This API requires a title secret key, available to title admins, from PlayFab Game Manager.

主體

application/json
MaxResultsCount
number
必填

Maximum number of entries to retrieve.

PlayFabId
string
必填

The player whose friend leaderboard to get

StartPosition
number
必填

Position in the leaderboard to start this listing (defaults to the first entry).

StatisticName
string
必填

Statistic used to rank friends for this leaderboard.

CustomTags
object

The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.).

ExternalPlatformFriends
enum<string>

Indicates which other platforms' friends should be included in the response. In HTTP, it is represented as a comma-separated list of platforms.

可用選項:
None,
Steam,
Facebook,
Xbox,
Psn,
All
ProfileConstraints
object

If non-null, this determines which properties of the resulting player profiles to return. For API calls from the client, only the allowed client profile properties for the title may be requested. These allowed properties are configured in the Game Manager "Client Profile Options" tab in the "Settings" section.

UseSpecificVersion
boolean

If set to false, Version is considered null. If true, uses the specified Version

Version
number

The version of the leaderboard to get.

XboxToken
string

Xbox token if Xbox friends should be included. Requires Xbox be configured on PlayFab.

回應

Note that the Position of the user in the results is for the overall leaderboard.

code
integer

The Http status code. If X-ReportErrorAsSuccess header is set to true, this will report the actual http error code.

status
string

The Http status code as a string.

data
object

Note that the Position of the user in the results is for the overall leaderboard.

範例:
最後修改於 2026年10月6日