/v1/boards
Decking boards
Δοκιμάστε το ζωντανά
10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.
Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.
Λάβετε ένα κλειδί APIΑποσπάσματα κώδικα
curl "https://api.oanor.com/deck-api/v1/boards" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/deck-api/v1/boards", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/deck-api/v1/boards");
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/deck-api/v1/boards",
headers={"x-oanor-key": "oanor_test_..."}
)
Παράδειγμα απόκρισης
Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.
{
"data": {
"note": "Rows = deck width ÷ (board width + gap), rounded up. Boards run the length; each row needs ⌈length ÷ stock board length⌉ boards. A 5/4×6 board is about 5.5\" wide; 1/8\" gaps are typical. Waste covers cuts and culls.",
"rows": 26,
"inputs": {
"gap_in": 0.125,
"width_ft": 12,
"length_ft": 16,
"waste_percent": 10,
"board_width_in": 5.5,
"board_length_ft": 16
},
"linear_feet": 416,
"boards_per_row": 1,
"deck_area_sqft": 192,
"boards_no_waste": 26,
"boards_with_waste": 29
},
"meta": {
"timestamp": "2026-06-06T07:14:05.722Z",
"request_id": "aaaaa53d-68d9-41af-8e47-6d87c5d9c9e5"
},
"status": "ok",
"message": "Decking boards",
"success": true
}