Api

Wordpress Eklentisi olarak ta kullanabilirsiz.
Ayarlar > TürkçeSpin bölümünden Api Token'ı girmeniz yeterlidir.
Api Url https://turkcespin.com/api
Api Token
Giriş yapmanız gerekir.
İçerik Özgünleştirme
Api ile İçerik özgünleştirme
Örnek Url
https://turkcespin.com/api/spin?token=&article=Spinlenecek içerik
Parametleler (POST-GET)
- token = Api Token
- article = Spinlenecek içerik
$postData = array( 'token' => '', 'article' => 'Bugün güzel bir gün' ); $ch = curl_init("https://turkcespin.com/api/spin"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS,http_build_query($postData)); $result = curl_exec ($ch); curl_close($ch);
Sonuç
{"status":"ok","article":"Bugün hoş bir gün"}
Lisans Bilgileri
Api ile Lisans bilgilerini görme
Örnek Url
https://turkcespin.com/api/detail?token=
Parametleler (POST-GET)
- token = Api Token
$postData = array( 'token' => '', ); $ch = curl_init("https://turkcespin.com/api/detail"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS,http_build_query($postData)); $result = curl_exec ($ch); curl_close($ch);
Sonuç
{"status":"ok","data":{"licenseName":"SX-Platinum","licenseDaysLeft":30,"dailyLimit":500,"remainingLimit":500}}