...
Table of Contents |
---|
...
Getting an authorization token
...
Для использования API Вам нужно получить специальный код — токен авторизации.
Для реализации этого, перейдите в раздел Настройки (Settings) To use the API, you need to obtain a special code - an authorization token.
To implement this, go to Settings (1) → Интеграция ( Integrations ) (2) → Leeloo API (3) → Токен ( Tokens ) (4) → Скопировать в буффер обмена → Copy to clipboard (5).
Также вы можете обновить токен You can also update the token (6). На данной странице вы также можете включить
On this page you can also enable Webhook (7). Более детально об Webhook вы можете узнать в инструкции You can learn more about Webhook in the enWebHooks (API) instructions.
Обязательно: убедитесь, что скопировали токен без пробелов вначале и в концеRequired: Make sure to copy the token without spaces at the beginning and at the end.
1 - раздел НастройкиSettings section.
2 - подраздел Интеграцияsubsection Integration.
3 - страница Leeloo API page.
4 - поле, где указан Токенfield where the Token is indicated.
5 - кнопка для копирования токенаbutton for copying a token.
6 - кнопка, которая обновляет токенbutton that updates the token.
7 - кнопка, с помощью которой включается button that enables Webhook.
Использование токена
Далее работа с API происходит посредством http-запросов.
Вам необходимо передавать свой токен с каждым запросом, для этого поместите его в header запроса Token usage
Further work with the API occurs through http requests.
You need to pass your token with every request, to do this, place it in the request header 'X-Leeloo-AuthToken'.
Запросы описаны в следующих статьях:
...
Queries are described in the following articles:
Client accounts (Accounts);
...
Orders
...
;
...
Tunnels
...
;
...
Users
...
;
WebHooks.