Mengambil informasi pengguna.
Coba sekarang
Test
RAM authorization
Sintaks permintaan
POST /v2/user/get HTTP/1.1
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
Parameter permintaan. |
|
| user_id |
string |
No |
ID pengguna. Jika Anda menggunakan Pasangan Kunci Akses untuk mengakses Drive and Photo Service, Anda harus menentukan parameter ini. Jika Anda menggunakan token akses untuk mengakses Drive and Photo Service, Anda tidak perlu menentukan parameter ini, dan Drive and Photo Service akan secara otomatis menemukan ID pengguna yang terdapat dalam token akses tersebut. |
c9b7a5aa04d14ae3867fdc886fa01da4 |
Elemen respons
|
Element |
Type |
Description |
Example |
| User |
Informasi tentang pengguna. |
Contoh
Respons sukses
JSONformat
{
"domain_id": "bj1",
"user_id": "c9b7a5aa04d14ae3867fdc886fa01da4",
"avatar": "http://aa.com/1.jpg",
"created_at": 1639762579768,
"updated_at": 1639762579768,
"email": "a@aliyunpds.com",
"nick_name": "001",
"phone": "13900001111",
"role": "user",
"status": "enabled",
"user_name": "pds",
"description": "vipuser",
"default_drive_id": "1",
"user_data": {
"key": ""
},
"creator": "user1",
"punishments": [
{
"punish_flag": 0,
"starts_at": "",
"ends_at": "",
"impermanent": true
}
],
"is_sync": true
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.