Referans
SDK'lar ve kütüphaneler
Her işlem düz bir HTTP istemcisiyle çalışır, bu yüzden kütüphaneye ihtiyacınız yok. Resmî paketler henüz yayımlanmadı. Standart anahtar + işlem (key + action) API'sini kullanan paneller ve betikler yalnızca yeni temel URL'ye ihtiyaç duyar.
Herhangi bir HTTP istemcisi kullanın
Form alanlarıyla bir POST ya da aynı adlara sahip bir JSON gövdesi yeterlidir. Bu örnekler hizmetlerinizi okur.
# 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";
Sipariş verme
Sipariş vermek, daha fazla alanla aynı istektir. request_id, bağlantı koparsa tekrarlamayı güvenli kılar.
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));
Resmi SDK'lar
- JavaScript SDKHenüz yayımlanmadı
- Python SDKHenüz yayımlanmadı
- PHP SDKHenüz yayımlanmadı
Mevcut bayi SDK'ları
Genel bir anahtar + işlem (key + action) bayi SDK'sını https://notpanel.com/api/v3 adresine yönlendirin ve alışık olduğu temel çağrıları koruyun. /api/v1, /api/v2, /api/v3 adresleri aynı şekilde davranır. İsteğe bağlı request_id, ek alanlar, kademeli gönderim seçenekleri, sipariş ayrıntıları ve imzalı webhook'lar eklemelerdir. Yardıma ihtiyacınız olursa şuradan bir talep açın: iletişim sayfası SDK ve çağrı ayrıntılarıyla.
https://notpanel.com/api/v3Kendinizinkini yayınlamak ister misiniz?
Topluluk SDK'ları memnuniyetle karşılanır. Bu sitedeki referans sayfaları yetkili spesifikasyondur — onlara karşı doğru şekilde gidip gelen her şey geçerli bir SDK'dır. İyi bakımlı topluluk paketlerini bu sayfadan bağlamaktan mutluluk duyarız; şu yolla ulaşın: support@notpanel.com bir bağlantıyla.