Изменения

Перейти к: навигация, поиск

REST API

80 байт добавлено, 14:54, 25 ноября 2019
Нет описания правки
<syntaxhighlight lang="javascript">
POST /token HTTP/1.1
Host: https://api.hybrid.ru
Content-Type: application/x-www-form-urlencoded
</syntaxhighlight>
<syntaxhighlight lang="javascript">
POST /token HTTP/1.1
Host: https://api.hybrid.ru
Content-Type: application/x-www-form-urlencoded
grant_type=refresh_token&refresh_token={refresh_token}&client_id={client_id}&client_secret={client_secret}
<syntaxhighlight lang="javascript">
GET /v2.0/agency/ HTTP/1.1
Host: https://api.hybrid.ru
Authorization: Bearer {access_token}
</syntaxhighlight>
<syntaxhighlight lang="javascript">
GET /v2.0/advertiser/{advertiserId} HTTP/1.1
Host: https://api.hybrid.ru
Authorization: Bearer {access_token}
</syntaxhighlight>
<syntaxhighlight lang="javascript">
GET /v2.0/campaign/{campaignId} HTTP/1.1
Host: https://api.hybrid.ru
Authorization: Bearer {access_token}
</syntaxhighlight>
GET v2.0/agency/{split}?from={from}&to={to}&page={page}&limit={limit}
HTTP/1.1
Host: https://api.hybrid.ru
Authorization: Bearer {access_token}
</syntaxhighlight>
GET v2.0/advertiser/{split}?from={from}&to={to}&page={page}&limit={limit}&id={id}
HTTP/1.1
Host: https://api.hybrid.ru
Authorization: Bearer {access_token}
</syntaxhighlight>
GET v2.0/campaign/{split}?from={from}&to={to}&page={page}&limit={limit}&id={id}
HTTP/1.1
Host: https://api.hybrid.ru
Authorization: Bearer {access_token}
</syntaxhighlight>
GET v2.0/banner/{split}?from={from}&to={to}&page={page}&limit={limit}&id={id}
HTTP/1.1
Host: https://api.hybrid.ru
Authorization: Bearer {access_token}
</syntaxhighlight>
GET v2.0/ssp?from={from}&to={to}
HTTP/1.1
Host: https://api.hybrid.ru
Authorization: Bearer {access_token}
</syntaxhighlight>

Навигация