/v1/balance
Solve the balancing arm
Δοκιμάστε το ζωντανά
10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.
Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.
Λάβετε ένα κλειδί APIΑποσπάσματα κώδικα
curl "https://api.oanor.com/wheatstone-api/v1/balance" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/wheatstone-api/v1/balance", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/wheatstone-api/v1/balance");
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/wheatstone-api/v1/balance",
headers={"x-oanor-key": "oanor_test_..."}
)
Παράδειγμα απόκρισης
Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.
{
"data": {
"known": {
"r1": 1000,
"r2": 2000,
"r3": 1500
},
"formula": "At balance R1·R4 = R2·R3, so the unknown arm follows from the other three.",
"unknown_arm": "r4",
"balanced_resistance_ohm": 3000
},
"meta": {
"timestamp": "2026-06-04T10:18:53.778Z",
"request_id": "24089ee0-faf9-46c4-acab-d6d6cc27ff16"
},
"status": "ok",
"message": "Solve the balancing arm",
"success": true
}