Skip to content

获取用户令牌​

GET
/v2/auth/token?grant_type=authorization_code
  • 用于获取用户令牌。

  • 注:access_token 有效期为 30 天;删除应用或重置应用密钥(Secret),都会导致当前令牌立即失效。

参数​

查询参数

grant_type*

授权类型,这里固定为:authorization_code。

类型
string
必填
默认
"authorization_code"
client_id*

PingCode 应用的 Client ID

类型
string
必填
client_secret*

PingCode 应用的 Secret

类型
string
必填
code*

用户授权后,在回调地址中拿到的 code 值。

类型
string
必填

响应​

响应示例:

application/json

令牌

刷新令牌

令牌类型

过期时间

示例​

举报邮箱:abuse@worktile.com