/v1/game
Apply a round to the running score
Δοκιμάστε το ζωντανά
10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.
Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.
Λάβετε ένα κλειδί APIΑποσπάσματα κώδικα
curl "https://api.oanor.com/cornhole-api/v1/game" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/cornhole-api/v1/game", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/cornhole-api/v1/game");
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/cornhole-api/v1/game",
headers={"x-oanor-key": "oanor_test_..."}
)
Παράδειγμα απόκρισης
Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.
{
"data": {
"won": true,
"note": "Official ACL play is first to 21 or more at the end of an inning — no bust. Backyard 'exact 21' rules bust a player who goes over back to a set score (commonly 15 or 11); set exact and bust_to for that. Points to win counts down what is still needed.",
"busted": false,
"inputs": {
"exact": false,
"target": 21,
"current_score": 18,
"points_scored": 4
},
"new_score": 22,
"points_to_win": 0
},
"meta": {
"timestamp": "2026-06-06T15:30:44.528Z",
"request_id": "f9e97c17-245e-46a7-b0a5-e5fef212b00b"
},
"status": "ok",
"message": "Game state",
"success": true
}