Получение токена авторизации
Request
POST
/oauth2/token
Body
application/x-www-form-urlencoded
{
"client_id": "string",
"client_secret": "string"
}
|
Name |
Description |
|
client_id* |
Type: string Идентификатор клиента |
|
client_secret* |
Type: string Секретный ключ |
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 Время токена Example: |
|
scope |
Type: string Example: |
|
token_type |
Type: string Тип токена Example: |
401 Unauthorized
Ошибка авторизации
No longer supported, please use an alternative and newer version.