# 获取用户拥有的游戏列表 获取用户拥有的游戏列表。响应将包含指定用户拥有的一组游戏。 注意:所有项目对于可以在响应中获得的商品数量均都限制。默认值和最大值是每个响应50项。要逐页获取更多数据,请使用limit和offset字段。 Endpoint: GET /v2/project/{project_id}/entitlement Version: 2.0.0 Security: XsollaLoginUserJWT ## Path parameters: - `project_id` (integer, required) 项目ID。您可以在您的发布商帐户项目名称旁边找到。 Example: 44056 ## Query parameters: - `limit` (integer) 页面上元素数量的限制。 Example: 50 - `offset` (integer) 元素编号,从该元素开始生成列表(从0开始数)。 - `sandbox` (integer) 应返回何种类型的权利。如果该参数设置为1,则仅返回用户在沙盒模式下收到的权限。如果未传递该参数或设置为0,则仅返回用户在实时模式下收到的权利。 - `additional_fields[]` (array) 附加字段列表。如果在请求中发送这些字段,则它们将包含在响应中。可用字段attributes。 ## Response 200 fields (application/json): - `has_more` (boolean) 用作指示还有更多页面。 Example: true - `items` (array) - `items.attributes` (array) 游戏对应的属性及属性值列表。 注意:这部分响应仅在您发送additional_fields[]=attributes查询参数时可用。 Example: {"value":{"external_id":"genre","name":"Жанр","values":[{"external_id":"genre_e3364991f92e751689a68b96598a5a5a84010b85","value":"Casual"},{"external_id":"genre_eba07bfd0f982940773cba3744d97264dd58acd7","value":"Strategy"},{"external_id":"genre_b8d0c6d8f0524c2b2d79ebb93aa3cd0e8b5199a8","value":"Mobile"}]}} - `items.attributes.external_id` (string) 唯一属性ID。 external_id只能包含大小写英文字母和数字字符、破折号和下划线。 Example: "attribute_1" - `items.attributes.name` (string) 属性名称。 Example: "Genre" - `items.attributes.values` (array) - `items.attributes.values.external_id` (string) 属性的唯一值ID。 external_id只能包含小写英文字母和数字字符、破折号和下划线。 Example: "attribute_value" - `items.attributes.values.value` (string) 属性值。 Example: "Strategy" - `items.description` (string) 游戏套餐描述。 Example: "Description of the greatest game in the world." - `items.drm` (string) 唯一DRM ID。 Enum: "steam", "playstation", "xbox", "uplay", "origin", "drmfree", "gog", "epicgames", "nintendo_eshop", "discord_game_store", "oculus", "rockstar", "viveport", "stadia" - `items.game_sku` (string) 唯一密钥套餐ID。 Example: "theGreatestGameSku" - `items.image_url` (string) 图像URL。 Example: "https://none" - `items.is_pre_order` (boolean) 游戏是否处于预订状态。 - `items.name` (string) 游戏套餐名称。 Example: "The Greatest Game in the World" - `items.project_id` (integer) 项目ID。您可以在您的[发布商帐户](https://publisher.xsolla.com/)项目名称旁边找到。 Example: 44056 - `total_items_count` (integer) 系统中的商品总数。 Example: 10 ## Response 401 fields (application/json): - `errorCode` (integer) Example: 1020 - `errorMessage` (string) Example: "[0401-1020]: Error in Authentication method occurred" - `statusCode` (integer) Example: 401