/v1/rolls
Rolls (drop method)
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
curl "https://api.oanor.com/wallpaper-api/v1/rolls" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/wallpaper-api/v1/rolls", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/wallpaper-api/v1/rolls");
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/wallpaper-api/v1/rolls",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"note": "Drop method: drops/roll = floor(roll_length/(height+repeat)); a larger pattern repeat wastes more and needs more rolls.",
"inputs": {
"perimeter": 16,
"roll_width": 0.53,
"roll_length": 10.05,
"wall_height": 2.4,
"pattern_repeat": 0
},
"total_drops": 31,
"rolls_needed": 8,
"drops_per_roll": 4
},
"meta": {
"timestamp": "2026-06-04T18:38:17.590Z",
"request_id": "8539b9a9-4549-4556-962b-3f4280b34bbb"
},
"status": "ok",
"message": "Rolls (drop method)",
"success": true
}