Public API

API Dokümantasyonu

Herkese açık endpoint'ler — API anahtarı gerekmez. Aşağıdan doğrudan test edebilirsiniz.

Base URL https://ssilistre.dev/api/v1

Aktif tüm ürünleri kategori bilgileriyle birlikte döndürür. Kimlik doğrulama gerekmez.

Response Alanları

nameÜrün adı
slugURL dostu tanımlayıcı
taglineKısa açıklama
image_urlÜrün görseli (tam URL)
buy_urlSatın alma linki
price.formattedFormatlanmış fiyat metni
platformsDesteklenen platformlar [ ]
category.nameKategori adı
urlÜrün sayfası URL'i

Canlı Test

Kod Örneği

const res = await fetch('https://ssilistre.dev/api/v1/products');
const { data } = await res.json();

data.forEach(product => {
    console.log(product.name, product.buy_url);
});
$response = file_get_contents('https://ssilistre.dev/api/v1/products');
$data = json_decode($response, true)['data'];

foreach ($data as $product) {
    echo $product['name'] . ' — ' . $product['price']['formatted'];
}

Bir ürünün tüm detaylarını döndürür: görsel, galeri, özellikler, fiyat, satın alma linki.

Parametre

slug zorunlu Ürün slug'ı (ör: wpbot)

Canlı Test

Kod Örneği

const res = await fetch('https://ssilistre.dev/api/v1/products/wpbot');
const { data } = await res.json();

console.log(data.image_url);  // görsel URL
console.log(data.buy_url);    // satın alma linki
console.log(data.gallery_images); // galeri görselleri
$response = file_get_contents('https://ssilistre.dev/api/v1/products/wpbot');
$product = json_decode($response, true)['data'];

echo $product['image_url'];
echo $product['buy_url'];

Yayınlanmış tüm changelog kayıtlarını döndürür. HTML içerik hazır şekilde gelir.

Response Alanları

versionSürüm numarası (ör: 1.2.0)
titleGüncelleme başlığı
content_htmlİçerik (render'a hazır HTML)
typeadded / changed / fixed / removed
published_atYayın tarihi (YYYY-MM-DD HH:MM:SS)

Canlı Test

Kod Örneği

const res = await fetch('https://ssilistre.dev/api/v1/changelog');
const { data } = await res.json();

data.forEach(entry => {
    console.log(`v${entry.version} — ${entry.title}`);
    document.body.innerHTML += entry.content_html;
});
$response = file_get_contents('https://ssilistre.dev/api/v1/changelog');
$entries = json_decode($response, true)['data'];

foreach ($entries as $entry) {
    echo "v{$entry['version']}: {$entry['title']}\n";
}

Bir lisans anahtarının geçerliliğini ve durumunu sorgular. Body olarak JSON gönderilir.

Request Body (JSON)

license_key zorunlu Doğrulanacak lisans anahtarı

Canlı Test

Kod Örneği

const res = await fetch('https://ssilistre.dev/api/license/validate', {
    method: 'POST',
    headers: { 'Content-Type': 'application/json' },
    body: JSON.stringify({ license_key: 'XXXX-XXXX-XXXX' })
});
const data = await res.json();

if (data.valid) {
    console.log('Lisans geçerli:', data.license_key.status);
} else {
    console.log('Geçersiz lisans');
}
$ch = curl_init('https://ssilistre.dev/api/license/validate');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_POST => true,
    CURLOPT_HTTPHEADER => ['Content-Type: application/json'],
    CURLOPT_POSTFIELDS => json_encode(['license_key' => 'XXXX-XXXX'])
]);
$result = json_decode(curl_exec($ch), true);
curl_close($ch);

echo $result['valid'] ? 'Geçerli' : 'Geçersiz';