Отримати інформацію про сертифікати
1,
«edrpou» => $edrpou
];
$jsonData = json_encode($data);
$options = [
«http» => [
«header» => [
«Content-Type: application/json»,
«Auth: $token»,
«Content-Length: » . strlen($jsonData)
],
«method» => «POST»,
«content» => $jsonData,
«ignore_errors» => true
]
];
$context = stream_context_create($options);
$result = file_get_contents($url, false, $context);
echo «
Результат запиту:
«;
echo ««;
}
?>