المرجع
مجموعات التطوير والمكتبات
يعمل كل إجراء مع عميل HTTP بسيط، فلا تحتاج إلى مكتبة. لم تُنشر الحزم الرسمية بعد. اللوحات والسكربتات التي تستخدم API القياسية القائمة على المفتاح + الإجراء (key + action) لا تحتاج إلا إلى عنوان 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 الرسمية
- حزمة SDK لـ JavaScriptلم تُنشر بعد
- حزمة SDK لـ Pythonلم تُنشر بعد
- حزمة SDK لـ PHPلم تُنشر بعد
مجموعات تطوير الموزّعين القائمة
وجّه SDK عامًّا لموزّعين قائمًا على المفتاح + الإجراء (key + action) إلى https://notpanel.com/api/v3 وأبقِ استدعاءاته الأساسية المألوفة. تتصرف العناوين /api/v1, /api/v2, /api/v3 بالطريقة نفسها. إضافات: request_id الاختياري، والحقول الإضافية، وخيارات التغذية التدريجية، وتفاصيل الطلب، والـ webhooks الموقّعة. إذا احتجت إلى مساعدة، افتح تذكرة من صفحة التواصل مع تفاصيل SDK والاستدعاء.
https://notpanel.com/api/v3أتريد نشر مجموعتك الخاصة؟
مجموعات تطوير المجتمع مرحّب بها. صفحات المرجع على هذا الموقع هي المواصفة المرجعية — أي شيء يعمل ذهابًا وإيابًا بشكل صحيح مقابلها فهو مجموعة تطوير صالحة. يسعدنا ربط حزم المجتمع جيدة الصيانة من هذه الصفحة؛ تواصل عبر support@notpanel.com مع رابط.