user

获取 access token

post/oauth/token

Response

获取成功

access_tokenstring
token_type'bearer'
expires_ininteger

access token 有效期,以秒记

scopestring

获得的 access token 的授权范围,以空格分隔

Example response

{
  "access_token": "acmoj-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  "expires_in": 31536000
}

Changes

Changed in 3 of the 11 revisions of this API.224

  • aa6951cc6ba1123See the full diff
    • added the new required request property grant_type

      new-required-request-property

    • removed the optional property expires_at from the response with the 200 status

      response-optional-property-removed

    • removed the optional property scopes from the response with the 200 status

      response-optional-property-removed

    • added the optional property expires_in to the response with the 200 status

      response-optional-property-added

    • added the optional property scope to the response with the 200 status

      response-optional-property-added

    • added the optional property token_type to the response with the 200 status

      response-optional-property-added

    • endpoint added

      endpoint-added

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • api path removed without deprecation

      api-path-removed-without-deprecation

    This revision also has 17 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog