बैलेंस
आपका मौजूदा पूर्ण USD वॉलेट बैलेंस लौटाता है। हर अनुरोध नवीनतम पूर्ण बैलेंस पढ़ता है; सामान्य API रेट लिमिट लागू रहती हैं।
POST
https://notpanel.com/api/v3action=balanceAPI की आवश्यकरेट लिमिटेड (shared account + IP + action)बॉडी:
application/x-www-form-urlencodedपैरामीटर
| नाम | टाइप | विवरण |
|---|---|---|
| keyआवश्यक | string | आपकी API की। |
| actionआवश्यक | string | लिटरल स्ट्रिंग "balance" होना चाहिए। |
उदाहरण रिक्वेस्ट
YOUR_API_KEY को अपने डैशबोर्ड के API पेज के तहत जनरेट की गई की से बदलें।
curl -X POST https://notpanel.com/api/v3 \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "key=YOUR_API_KEY&action=balance"const res = await fetch("https://notpanel.com/api/v3", {
method: "POST",
headers: { "Content-Type": "application/x-www-form-urlencoded" },
body: new URLSearchParams({
key: "YOUR_API_KEY",
action: "balance",
}),
});
const data = await res.json();
console.log(data);import requests
res = requests.post(
"https://notpanel.com/api/v3",
data={
"key": "YOUR_API_KEY",
"action": "balance",
},
)
print(res.json())<?php
$body = http_build_query([
'key' => 'YOUR_API_KEY',
'action' => 'balance',
]);
$response = file_get_contents('https://notpanel.com/api/v3', false, stream_context_create([
'http' => [
'method' => 'POST',
'header' => "Content-Type: application/x-www-form-urlencoded\r\n",
'content' => $body,
'ignore_errors' => true,
],
]));
print_r(json_decode($response, true));
उदाहरण रिस्पॉन्स
{
"balance": "47.32",
"currency": "USD"
}सामान्य एरर
| स्टेटस | बॉडी | कारण |
|---|---|---|
| 403 | {"error":"Account suspended"} | अकाउंट active नहीं है। |