Μετάβαση στο περιεχόμενο
GET /v1/curtain

Curtain fabric

Δοκιμάστε το ζωντανά

10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.

Προσαρμοσμένες κεφαλίδες (προαιρετικά)
api.oanor.com/sewing-api

Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.

Λάβετε ένα κλειδί API

Αποσπάσματα κώδικα

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_..."}
)

Παράδειγμα απόκρισης

Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.

{
    "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
}