Xsolla-logo
  • 文档
  • 创建帐户

获取当前用户物品库

get/v2/project/{project_id}/user/inventory/items

客户端端点。检索当前用户物品库。

注意:

所有项目对于可以在响应中获得的商品数量均都限制。默认值和最大值是每个响应50项。要逐页获取更多数据,请使用limitoffset字段。
SecurityXsollaLoginUserJWT
Request
path Parameters
project_id
required
integer

项目编号。您可以在您的发布商帐户项目名称旁边。

Example: 44056
query Parameters
limit
integer

页面上元素数量的限制。

Example: limit=50
offset
integer

元素编号,从该元素开始生成列表(从0开始数)。

Example: offset=0
platform
string
Default: "xsolla"

用户玩游戏的发布平台。

Enum: "playstation_network" "xbox_live" "xsolla" "pc_standalone" "nintendo_shop" "google_play" "app_store_ios" "android_standalone" "ios_standalone" "android_other" "ios_other" "pc_other"
Responses
200

已成功检索用户物品库。

Request samples
Response samples
application/json
{
  • "items": [
    ]
}