Skip to main content

get oauth access_token

get oauth access Token, based on authorization code or refresh_ Token

Header Parameters
  • Content-Type required

    application/json

Request Body
  • client_id string

    Application Client Id

  • client_secret string

    Application client key

  • code string

    Oauth authorization code (non empty when using authorization code to obtain token)

  • grant_type string

    grant_type value:refresh_token(Use refresh_ Token must be passed when refreshing a token)

  • refresh_token string

    refresh_token(Use refresh_ Token must be passed when refreshing a token)

Responses

create tokenSuccess

POST /login/oauth/access_token

Request

Base URL
https://api.atomgit.com
Content-Type — header required
Body
curl -L -X POST 'https://api.atomgit.com/login/oauth/access_token' \
-H 'Content-Type: application/json' \
--data-raw ''