<?php
$url ='
$options = array(
'limit' => 1000,
'offset' => 0,
'domain' =>'*******',
);
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_URL, $url.'?'.http_build_query($options));
$response = curl_exec($ch);
$data = json_decode($response, true);
curl_close($ch);
echo '<pre>';
print_r($data);
?>
Выводит ошибку от API:
Array
(
[error] => Array
(
[сode] => unauthorized
[message] => authentication error
)
)
$url ='
Ссылка скрыта от гостей
$options = array(
'limit' => 1000,
'offset' => 0,
'domain' =>'*******',
);
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_URL, $url.'?'.http_build_query($options));
$response = curl_exec($ch);
$data = json_decode($response, true);
curl_close($ch);
echo '<pre>';
print_r($data);
?>
Выводит ошибку от API:
Array
(
[error] => Array
(
[сode] => unauthorized
[message] => authentication error
)
)