रेफ़रेंस
SDK और लाइब्रेरी
हर कार्रवाई साधारण HTTP क्लाइंट से काम करती है, इसलिए आपको लाइब्रेरी की ज़रूरत नहीं। आधिकारिक पैकेज अभी प्रकाशित नहीं हुए हैं। जो पैनल और स्क्रिप्ट मानक कुंजी + एक्शन (key + action) API इस्तेमाल करते हैं, उन्हें केवल नया बेस URL चाहिए।
कोई भी HTTP क्लाइंट इस्तेमाल करें
फ़ॉर्म फ़ील्ड वाला POST, या उन्हीं नामों वाली JSON बॉडी, बस इतना काफ़ी है। ये नमूने आपकी सेवाएँ पढ़ते हैं।
# List the services you can order
curl -X POST https://notpanel.com/api/v3 \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "key=YOUR_API_KEY&action=services"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: "services",
}),
});
const services = await res.json();
console.log(`Found ${services.length} services`);import requests
res = requests.post(
"https://notpanel.com/api/v3",
data={"key": "YOUR_API_KEY", "action": "services"},
)
services = res.json()
print(f"Found {len(services)} services")<?php
$body = http_build_query([
'key' => 'YOUR_API_KEY',
'action' => 'services',
]);
$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,
],
]));
$services = json_decode($response, true);
echo "Found " . count($services) . " services\n";
ऑर्डर दें
ऑर्डर देना वही अनुरोध है, बस ज़्यादा फ़ील्ड के साथ। request_id कनेक्शन टूटने पर इसे दोहराना सुरक्षित बनाता है।
curl -X POST https://notpanel.com/api/v3 \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "key=YOUR_API_KEY&action=add&service=7&link=https://instagram.com/example&quantity=1000&request_id=550e8400-e29b-41d4-a716-446655440000"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: "add",
service: "7",
link: "https://instagram.com/example",
quantity: "1000",
request_id: "550e8400-e29b-41d4-a716-446655440000",
}),
});
const data = await res.json();
console.log(data);import requests
res = requests.post(
"https://notpanel.com/api/v3",
data={
"key": "YOUR_API_KEY",
"action": "add",
"service": "7",
"link": "https://instagram.com/example",
"quantity": "1000",
"request_id": "550e8400-e29b-41d4-a716-446655440000",
},
)
print(res.json())<?php
$body = http_build_query([
'key' => 'YOUR_API_KEY',
'action' => 'add',
'service' => '7',
'link' => 'https://instagram.com/example',
'quantity' => '1000',
'request_id' => '550e8400-e29b-41d4-a716-446655440000',
]);
$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));
आधिकारिक SDK
- JavaScript SDKअभी प्रकाशित नहीं
- Python SDKअभी प्रकाशित नहीं
- PHP SDKअभी प्रकाशित नहीं
मौजूदा reseller SDK
एक सामान्य कुंजी + एक्शन (key + action) रीसेलर SDK को https://notpanel.com/api/v3 की ओर इंगित करें और उसकी जानी-पहचानी मुख्य कॉल बनाए रखें। पते /api/v1, /api/v2, /api/v3 एक जैसा व्यवहार करते हैं। वैकल्पिक request_id, अतिरिक्त फ़ील्ड, ड्रिप फीड विकल्प, ऑर्डर का विवरण और हस्ताक्षरित webhooks जोड़ हैं। अगर आपको मदद चाहिए, तो टिकट खोलें यहाँ से संपर्क पेज SDK और call details के साथ।
https://notpanel.com/api/v3अपना खुद का प्रकाशित करना चाहते हैं?
कम्युनिटी SDK का स्वागत है। इस साइट के रेफ़रेंस पेज ही प्रामाणिक स्पेक हैं — जो कुछ भी उनके विरुद्ध सही ढंग से राउंड-ट्रिप करता है वह एक वैध SDK है। हम अच्छी तरह मेंटेन किए गए कम्युनिटी पैकेज को इस पेज से लिंक करने में खुश हैं; इसके ज़रिए संपर्क करें support@notpanel.com एक लिंक के साथ।