Получение токена авторизации
Request
POST
/oauth2/token
Body
application/x-www-form-urlencoded
{
"client_id": "example",
"client_secret": "example"
}
|
Name |
Description |
|
client_id |
Type: string Идентификатор клиента Example: |
|
client_secret |
Type: string Секретный ключ Example: |
Responses
200 OK
OK,
Body
application/json
{
"access_token": "bqehYcfk7Tb2zKRkxQ-IaK9nHyntdYnlpJ7kwTNX3B6mIKPws",
"expires_in": 120,
"scope": "vendor_management",
"token_type": "bearer"
}
|
Name |
Description |
|
access_token |
Type: string Токен Example: |
|
expires_in |
Type: integer Время токена |
|
scope |
Type: string Example: |
|
token_type |
Type: string Тип токена Example: |
401 Unauthorized
Ошибка авторизации
No longer supported, please use an alternative and newer version.