Api - Entegrasyon

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"}


SONUÇ:

{username: "KullaniciAdi", token : "[TOKEN]", validity : "2999-01-01"}
*duration: Token geçerlilik tarihi. yyyy-mm-dd

#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"}


SONUÇ:

{small_url: "https://lil.tc/ArdpcViLa", url_status : "true", url_create : "2022-01-01"}

#HATA MESAJLARI

{err: "true", err_description : "[HATA AÇIKLAMASI]"}