API Kullanımı

LeaderOS v5 için geliştirilmiş API hakkındaki bilgileri bu sayfada bulabilirsiniz.

API'ye yaptığınız istek sonucu size bir JSON verisi döndürür. Bu veriyi plugin veya skript ile işleyip oyuncularınıza gösterebilirsiniz.

Giriş ve Kayıt ol sistemi için Yönetim Paneli > Sistem Ayarları "Auth API" aktif olmalıdır.

Giriş Yap

POST https://siteniz.com/apps/api/login.php

Kullanıcı adı ve şifreyi doğrulayabilirsiniz.

Path Parameters

{
    'status' => true,
}

Kayıt Ol

POST https://siteniz.com/apps/api/register.php

Kullanıcıyı kayıt edebilirsiniz.

Path Parameters

{
    'status' => true,
    'accountID' => int, // Tam sayı bir kullanıcı ID'si döner.
}

Kredi Geçmişi

GET https://siteniz.com/apps/api/credit-history.php

Örnek Kullanım: Kullanıcı adı LeaderOS olan 2 adet veriyi getirir. https://premium.leaderos.com.tr/apps/api/credit-history.php?username=LeaderOS&limit=2 NOT: username ve limit parametreleri zorunlu değildir.

Path Parameters

[
    {
        accountID: 1,
        username: "demo",
        amount: 12,
        creationDate: "2020-12-21 22:40:11"
    },
    {
        accountID: 2,
        username: "LeaderOS",
        amount: 20,
        creationDate: "2020-12-21 22:39:50"
    }
]

Mağaza Geçmişi

GET https://siteniz.com/apps/api/store-history.php

Örnek Kullanım: Kullanıcı adı LeaderOS olan 2 adet veriyi gösterir. https://premium.leaderos.com.tr/apps/api/store-history.php?username=LeaderOS&limit=2 NOT: username ve limit parametreleri zorunlu değildir.

Path Parameters

[
    {
        accountID: 2,
        username: "LeaderOS",
        serverName: "Factions",
        productName: "250K Para",
        price: 5,
        creationDate: "2020-07-21 22:38:35"
    },
    {
        accountID: 1,
        username: "demo",
        serverName: "Factions",
        productName: "100K Para",
        price: 3,
        creationDate: "2020-07-21 22:38:25"
    }
]

En Çok Kredi Yükleyenler

GET https://siteniz.com/apps/api/top-credit-history.php

Örnek Kullanım: Kullanıcı adı LeaderOS olan 2 adet veriyi gösterir. https://premium.leaderos.com.tr/apps/api/top-credit-history.php?username=LeaderOS&limit=2 NOT: username ve limit parametreleri zorunlu değildir.

Path Parameters

[
    {
        accountID: 1,
        username: "demo",
        amount: 30,
        count: 1, // tek seferde 30 kredi yüklemiş
        creationDate: "2020-12-21 22:40:11"
    },
    {
        accountID: 2,
        username: "LeaderOS",
        amount: 20,
        count: 2, // 2 seferde 20 kredi yüklemiş
        creationDate: "2020-12-21 22:39:50"
    }
]

Last updated