Notify group image generator canvas v2 antipasaran, Berikut code tutorial penggunaan nya.
https://editor.vreden.my.id/notify2
Header | Type | Description |
---|---|---|
Content-Type | String | image/png |
Berikut adalah contoh URLSearchParams request yang bisa dipakai untuk mendapatkan image welcome/leave v2 template.
{ "title": "Welcome", "group": "Group Name", "ppgc": "url group profile", "ppuser": "url user profile", "name": "Your Name", "desc": "Selamat datang di grup kami!", "background": "url background" }
Berikut adalah contoh code yang bisa di pakai untuk mendapatkan image tersebut.
const apiUrl = 'url endpoint' const params = new URLSearchParams({ title: 'Welcome', group: 'Group Name', ppgc: 'url group profile', ppuser: 'url user profile', name: 'Your Name', desc: 'Selamat datang di grup kami!', background: 'url background' }).toString(); const fullUrl = `${apiUrl}?${params}`
Keterangan untuk const yang ada di code tersebut.
Field | Type | Description |
---|---|---|
apiUrl | URL | Berisi URL endpoint web api |
params | JSON | Isi JSON data yang di convert ke params URL |
fullUrl | URL | Hasil akhir dari search params, ini yang digunakan untuk get buffer |
Keterangan untuk params request URLSearchParams.
Field | Type | Description |
---|---|---|
title | String | Judul notifikasi. |
group | String | Nama grup. |
ppgc | URL | URL foto profil grup. |
ppuser | URL | URL foto profil pengguna. |
name | String | Nama pengguna. |
desc | String | Deskripsi notifikasi. |
background | URL | (1280x720) URL gambar latar belakang. |