Request
Contoh memakai apikey demo. Masuk untuk melihatnya dengan apikey kamu.
Parameter
| Nama | Keterangan | Contoh |
|---|---|---|
apikey | Apikey kamu, dari halaman dashboard atau profil. | beta |
texttop | - | LoL |
textbotton | - | - |
img | Link gambar yang diproses. | https://static.wikia.nocookie.net/dogelore/images/9/97/Doge.jpg/revision/latest/top-crop/width/360/height/450 |
Contoh kode
curl "https://api.lolhuman.xyz/api/memegen?apikey=beta&texttop=LoL&textbottom=human&img=https://static.wikia.nocookie.net/dogelore/images/9/97/Doge.jpg/revision/latest/top-crop/width/360/height/450?cb=20190205113053"Respons
Endpoint data mengembalikan JSON dengan format di bawah. Endpoint pembuat gambar mengembalikan file gambarnya langsung.
{
"status": 200,
"message": "success",
"result": ...
}Kemungkinan error
Dicek sebelum endpoint berjalan. Formatnya sama, dengan result berisi "error".
- 400Parameter apikey tidak dikirim.
apikey parameter cannot be empty.- 404Apikey salah atau sudah diganti.
apikey <apikey> not found.- 429Kuota harian habis. Kuota direset tengah malam WIB.
requests limit exceeded (10 req / day), ...- 403IP pemanggil diblokir dari halaman profil.
your ip address get blocked by owner apikey (...)