Make Your First API Call
Request Headers
Header
Required
Example
Example Code
curl -X GET https://public-api-dev.gurupay.eu/api/v1/auth \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Accept: application/json"$client = new \GuzzleHttp\Client();
$response = $client->request('GET', 'https://public-api-dev.gurupay.eu/api/v1/auth', [
'headers' => [
'Authorization' => 'Bearer YOUR_API_KEY',
'Accept' => 'application/json',
]
]);
echo $response->getBody();fetch("https://public-api.gurupay.eu/api/v1/auth", {
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json"
}
})
.then(response => response.json())
.then(data => console.log(data));
Last updated
Was this helpful?
