Rest Api Entegrasyon
#TOKEN Oluşturma İşlemi
Api Adresi : https://api.lil.tc/v1/token/Content-Type: application/json
Gönderilen JSON:
{username: "KullaniciAdi", password : "1234", duration : "2999-01-01"}{username: "KullaniciAdi", token : "[TOKEN]", validity : "2999-01-01"}
SONUÇ:
#URL KISALTMA
Api Adresi : https://api.lil.tc/v1/create_url/Content-Type: application/json
Authorization: [Token]
Gönderilen JSON:
{long_url: "https://krdyazilim.com"}{small_url: "https://lil.tc/ArdpcViLa", url_status : "true", url_create : "2022-01-01"}
SONUÇ:
#HATA MESAJLARI
{err: "true", err_description : "[HATA AÇIKLAMASI]"}