Authorization: Bearer {token}
", где вместо {token} укажите ключ доступа из вашего профиля./api/user/info
curl https://moclients.com/api/user/info -H "Authorization: Bearer {token}"
/api/user/info
возвращает информацию об аккаунте в формате JSON со следующей структурой:Authorization: Bearer {token}
". Метод запроса POST.
'request' => [
'from' => 1653534891,
'to' =>1653586804,
'sites' => [
[
'site_id' => 1,
],
[
'site_id' => 23,
],
],
]
'response' => [
'items' => [
1 => [
'count' => 12
],
23 => [
'count' => 10
],
]
]
Authorization: Bearer {token}
". Метод запроса POST.
'request' => [
[
'site_id' => 12
'requests' => [
[
'request_id' => 1400
],
[
'request_id' => 1500
],
]
],
[
'site_id' => 22
'requests' => [
[
'request_id' => 2000
],
[
'request_id' => 2100
],
]
]
]
'response' => [
'items' => [
12 => [
1400 => [
'phone_number' => '+79999999999'
],
1500 => [
'phone_number' => '+7 (999) 999-99-99'
]
],
22 => [
2000 => [
'phone_number' => '89999999999'
],
2100 => [
'phone_number' => '999-999-99-99'
]
],
]
]
Authorization: Bearer {token}
". Метод запроса POST.
'request' => [
[
'site_id' => 12
'requests' => [
[
'request_id' => 1400
],
[
'request_id' => 1500
],
]
],
[
'site_id' => 22
'requests' => [
[
'request_id' => 2000
],
[
'request_id' => 2100
],
]
]
]
'response' => [
'items' => [
12 => [
1400 => [
'phone_number' => '+79999999999'
],
1500 => [
'phone_number' => '+7 (910) 520-34-24'
]
],
22 => [
2000 => [
'phone_number' => '89028519925'
],
2100 => [
'phone_number' => '919-912-39-25'
]
],
]
]
Authorization: Bearer {token}
". Метод запроса POST.
'request' => [
// если type не указан - будут выбраны параметры в момент отправки
'type' => 'first_access',
'sites' => [
[
'site_id' => 226,
'requests' => [
[
'request_id' => 136,
],
[
'request_id' => 135,
],
],
],
[
'site_id' => 311,
'requests' => [
[
'request_id' => 40,
],
],
],
]
]
'response' => [
'items' => [
226 => [
136 => [
'get_params' => 'utm_medium=cpc&utm_source=yandex'
],
135 => [
'get_params' => 'utm_medium=cpc&utm_source=yandex'
]
],
311 => [
40 => [
'get_params' => 'utm_medium=cpc&utm_source=yandex'
],
],
]
]