/v1/bedtime
Recommended bedtimes from a wake time
Pruébalo en vivo
Una llamada gratuita por sesión: sin registro ni clave API. Pasa por la puerta de entrada de oanor.
Fragmentos de código
curl "https://api.oanor.com/sleep-api/v1/bedtime" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/sleep-api/v1/bedtime", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/sleep-api/v1/bedtime");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/sleep-api/v1/bedtime",
headers={"x-oanor-key": "oanor_test_..."}
)