/v1/curtain
Curtain fabric
Probeer het live
10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.
Het werkt. Haal een API-key op en gebruik hem in je project.
Verkrijg een API-sleutelCodefragmenten
curl "https://api.oanor.com/sewing-api/v1/curtain" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/sewing-api/v1/curtain", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/sewing-api/v1/curtain");
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/sewing-api/v1/curtain",
headers={"x-oanor-key": "oanor_test_..."}
)
Voorbeeldrespons
Een echte respons van dit endpoint, vastgelegd bij de laatste health check.
{
"data": {
"note": "Drops = ceil(window width × fullness ÷ fabric width). Each drop is the finished length plus hems (rounded up to the pattern repeat). 2× fullness is standard, 2.5–3× for a luxe gather.",
"drops": 3,
"inputs": {
"fullness": 2.5,
"fabric_width": 54,
"window_width": 60,
"hem_allowance": 16,
"finished_length": 84
},
"cut_length_inches": 100,
"total_length_yards": 8.3333,
"fabric_width_needed": 150,
"total_length_inches": 300,
"total_length_meters": 7.62
},
"meta": {
"timestamp": "2026-06-06T07:14:09.787Z",
"request_id": "c6121e11-e087-4bf4-b5ea-97ed2f46edb9"
},
"status": "ok",
"message": "Curtain fabric",
"success": true
}