次の方法で共有


Title-Wide Data Management - Get Random Result Tables

NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for version 2. Retrieves the random drop table configuration for the title

POST https://titleId.playfabapi.com/Admin/GetRandomResultTables

Request Header

Name Required Type Description
X-SecretKey True

string

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

Request Body

Name Type Description
CatalogVersion

string

catalog version to fetch tables from. Use default catalog version if null

Responses

Name Type Description
200 OK

GetRandomResultTablesResult

400 Bad Request

ApiErrorWrapper

This is the outer wrapper for all responses with errors

Security

X-SecretKey

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

Type: apiKey
In: header

Definitions

Name Description
ApiErrorWrapper

The basic wrapper around every failed API response

GetRandomResultTablesRequest
GetRandomResultTablesResult
RandomResultTableListing
ResultTableNode
ResultTableNodeType

ApiErrorWrapper

The basic wrapper around every failed API response

Name Type Description
code

integer

Numerical HTTP code

error

string

Playfab error code

errorCode

integer

Numerical PlayFab error code

errorDetails

object

Detailed description of individual issues with the request object

errorMessage

string

Description for the PlayFab errorCode

status

string

String HTTP code

GetRandomResultTablesRequest

Name Type Description
CatalogVersion

string

catalog version to fetch tables from. Use default catalog version if null

GetRandomResultTablesResult

Name Type Description
Tables

RandomResultTableListing

array of random result tables currently available

RandomResultTableListing

Name Type Description
CatalogVersion

string

Catalog version this table is associated with

Nodes

ResultTableNode[]

Child nodes that indicate what kind of drop table item this actually is.

TableId

string

Unique name for this drop table

ResultTableNode

Name Type Description
ResultItem

string

Either an ItemId, or the TableId of another random result table

ResultItemType

ResultTableNodeType

Whether this entry in the table is an item or a link to another table

Weight

number

How likely this is to be rolled - larger numbers add more weight

ResultTableNodeType

Name Type Description
ItemId

string

TableId

string