https://tanitim.ates.us/hello-dolly-panel/api.php
Tüm API istekleri X-API-KEY header'ı ile doğrulanmalıdır:
X-API-KEY: your_api_key_here
API Key'i Siteler sayfasından alabilirsiniz.
Sitenin tüm içerik linklerini al
Request:GET /api.php?action=get_links
X-API-KEY: your_api_key
Response:
{
"success": true,
"data": [
{
"id": 1,
"url": "https://example.com/sayfa",
"anchor_text": "Örnek Link",
"visibility": "visible",
"position": "random",
"status": "active"
}
]
}
Sitenin tüm footer linklerini al
Request:GET /api.php?action=get_footer_links
X-API-KEY: your_api_key
Response:
{
"success": true,
"data": [
{
"id": 1,
"url": "https://example.com",
"anchor_text": "Footer Link",
"visibility": "visible",
"order": 0
}
]
}
Bir linkin durumunu güncelle
Request:POST /api.php?action=update_link_status
X-API-KEY: your_api_key
Content-Type: application/json
{
"link_id": 1,
"status": "active",
"post_id": 123
}
Response:
{
"success": true,
"message": "Link durumu güncellendi"
}
Hata bildir
Request:POST /api.php?action=report_error
X-API-KEY: your_api_key
Content-Type: application/json
{
"error": "Link eklenemedi",
"details": "Post ID bulunamadı"
}
Response:
{
"success": true,
"message": "Hata kaydedildi"
}
| Kod | Açıklama |
|---|---|
401 |
Geçersiz veya eksik API Key |
404 |
Endpoint bulunamadı |
400 |
Geçersiz parametreler |
500 |
Sunucu hatası |