Geliştirici API Dokümantasyonu
Sistemimiz, SMM panelleri ve özel projeler için standart V2 API formatını destekler. Tüm istekler HTTP POST metodu ile yapılmalıdır.
API Uç Noktası (Endpoint): https://panel.yayinhizmetleri.com.tr/api.php
HTTP POST
Kimlik Doğrulama
Tüm isteklerde POST verisi olarak geçerli bir key (API Anahtarı) göndermeniz zorunludur. API anahtarınızı kullanıcı panelinden oluşturabilirsiniz.
| Parametre | Tür | Açıklama |
|---|---|---|
key | String | Sizin API Anahtarınız |
Hizmet Listesini Çekme (Services)
Sistemdeki tüm aktif hizmetleri, fiyatları ve minimum/maksimum sipariş limitlerini döndürür.
| Parametre | Açıklama |
|---|---|
action | services |
curl -X POST -d "key=API_KEY&action=services" \
https://panel.yayinhizmetleri.com.tr/api.php
JSON Response:
[
{
"service": 1,
"name": "Kick Canli Yayin Izleyici (30 Dakika)",
"type": "Default",
"category": "Kick Hizmetleri",
"rate": "26.00",
"rate_usd": "0.55",
"min": 10,
"max": 5000,
"duration": 30,
"refill": false
}
]
Yeni Sipariş Oluşturma (Add Order)
Sisteme yeni bir görev (izleyici, chat botu vb.) gönderir.
| Parametre | Açıklama |
|---|---|
action | add |
service | Hizmet ID Numarası |
link | Hedef kanal bağlantısı |
quantity | Gönderilecek miktar |
curl -X POST -d "key=API_KEY&action=add&service=1&link=https://kick.com/channel&quantity=100" \
https://panel.yayinhizmetleri.com.tr/api.php
JSON Response:
{
"order": 14593
}
Sipariş Durumu Sorgulama (Order Status)
Mevcut bir siparişin durumunu kontrol eder. (Durumlar: Pending, Completed, Canceled vb.)
| Parametre | Açıklama |
|---|---|
action | status |
order | Sipariş ID numarası |
curl -X POST -d "key=API_KEY&action=status&order=14593" \
https://panel.yayinhizmetleri.com.tr/api.php
JSON Response:
{
"charge": "1.50",
"start_count": 10,
"status": "Completed",
"remains": "0",
"currency": "TRY"
}
Bakiye Sorgulama (Balance)
Hesabınızdaki güncel bakiyeyi döndürür.
| Parametre | Açıklama |
|---|---|
action | balance |
curl -X POST -d "key=API_KEY&action=balance" \
https://panel.yayinhizmetleri.com.tr/api.php
JSON Response:
{
"balance": "145.50",
"currency": "TRY"
}
PHP cURL Örnek Kodu
<?php
$api_url = 'https://panel.yayinhizmetleri.com.tr/api.php';
$api_key = 'YOUR_API_KEY';
$data = [
'key' => $api_key,
'action' => 'add',
'service' => 1,
'link' => 'https://kick.com/channel',
'quantity' => 100
];
$ch = curl_init($api_url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data));
$response = curl_exec($ch);
curl_close($ch);
print_r(json_decode($response, true));
?>
Python Requests Örnek Kodu
import requests
url = "https://panel.yayinhizmetleri.com.tr/api.php"
data = {
"key": "YOUR_API_KEY",
"action": "add",
"service": 1,
"link": "https://kick.com/channel",
"quantity": 100
}
response = requests.post(url, data=data)
print(response.json())