/v1/strap
Strap / lace yield
Δοκιμάστε το ζωντανά
10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.
Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.
Λάβετε ένα κλειδί APIΑποσπάσματα κώδικα
curl "https://api.oanor.com/leather-api/v1/strap" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/leather-api/v1/strap", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/leather-api/v1/strap");
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/leather-api/v1/strap",
headers={"x-oanor-key": "oanor_test_..."}
)
Παράδειγμα απόκρισης
Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.
{
"data": {
"note": "Straps cut along the length of a rectangular piece: count = ⌊(width + kerf) ÷ (strap width + kerf)⌋, each as long as the piece. Cut straps along the backbone, not across, for the least stretch.",
"inputs": {
"strap_width": 1
},
"each_length": 24,
"piece_width": 12,
"strap_count": 12,
"piece_length": 24,
"total_strap_length": 288
},
"meta": {
"timestamp": "2026-06-06T07:14:01.612Z",
"request_id": "b7a20368-a1e6-4254-adcf-1af80c6e3eac"
},
"status": "ok",
"message": "Strap yield",
"success": true
}