Files
2024-12-07 23:36:35 +01:00

20 lines
386 B
PHP

<?php
$url = "http://localhost:8000/api/v1/users";
$authorization = "call_me_api_key_secret";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
"authorization: $authorization",
"Content-Type: application/json"
));
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>