Xsolla-logo
  • 文档
  • 创建帐户

从客户端获取用户的只读属性Client-side

post/attributes/users/me/get_read_only

Gets a list of particular user’s read-only attributes. Returns only attributes with the server value of the attr_type parameter, which was set only for reading.

Notice
Rate limits for client-side methods are applied to this method.

SecurityAttributesBearer
Request
Request Body schema: application/json
keys
Array of strings

要获取的属性键列表。如果不指定,则方法返回所有用户属性。

publisher_project_id
integer

要从发布者帐户获取属性的项目ID。如果不指定,方法将返回不带此参数值的属性。

user_id
string or null <uuid>

要获取其属性的用户ID。请求仅返回permission参数值为公共的属性。如果没有指定或为当前用户的用户ID,则请求只返回权限参数为任何值的属性。

Responses
200

确定

400

错误的请求

403

被禁止

422

无法处理的实体

429

请求过多

Request samples
application/json
{
  • "keys": [
    ],
  • "publisher_project_id": 0,
  • "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5"
}
Response samples
application/json
[
  • {
    }
]