跳到正文

获取当前用户

GET
/users/me

返回字段取决于已授予的 scope。在受限 scope 下,邮箱等敏感字段可能为空。

授权

CoinpostOAuth

OAuth 2.0 authorization code flow with PKCE.

authorizationCode Flow
Authorization URL"/oauth/authorize"
Token URL"/oauth/token"
Scopes:
  • "user.public"Read public profile fields.
  • "user.full"Read the full user profile.

响应

Current user

application/json
JSON
{
  
"ts": 0,
  
"data": {
  
  
"id": 0,
  
  
"uuid": "string",
  
  
"name": "string",
  
  
"bio": "string",
  
  
"tagline": "string",
  
  
"avatar_image_url": "string",
  
  
"email": "string",
  
  
"lang": "string",
  
  
"status": 0,
  
  
"created_at": "string",
  
  
"role": "string"
  
}
}

试验场

授权

示例