Xsolla-logo

クライアントからユーザーの属性を取得する

post/attributes/users/me/get

Gets a list of particular user’s attributes. Returns only attributes with the client value of attr_type parameter.

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

OK

400

無効なリクエスト

403

アクセス拒否

422

処理不可能なエンティティー

429

リクエストの回数が多すぎます

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