/v1/score
Winner points from leftover tiles
Δοκιμάστε το ζωντανά
10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.
Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.
Λάβετε ένα κλειδί APIΑποσπάσματα κώδικα
curl "https://api.oanor.com/dominoes-api/v1/score" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/dominoes-api/v1/score", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/dominoes-api/v1/score");
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/dominoes-api/v1/score",
headers={"x-oanor-key": "oanor_test_..."}
)
Παράδειγμα απόκρισης
Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.
{
"data": {
"note": "When a player dominoes (or the game blocks), the winner scores the total pip count left in the opponents' hands. Some house rules (common in Muggins/All Fives) round that total to the nearest five — set round_to_five. Pass each opponent's remaining pip total as a list.",
"inputs": {
"opponent_pips": [
12,
8,
23
],
"round_to_five": false
},
"raw_total": 43,
"score_awarded": 43
},
"meta": {
"timestamp": "2026-06-06T15:30:45.391Z",
"request_id": "27873c02-fdda-486a-bbbb-1419e1327040"
},
"status": "ok",
"message": "Hand score",
"success": true
}