#3 notify v1

Welcome and leave group generator yang bisa di gunakan untuk bot WhatsApp, discord atau lainnya. Berikut code example tutorial penggunaan API ini.

URL Endpoint

https://editor.vreden.my.id/notify

Headers

Header Type Description
Content-Type String image/png

Params

Berikut adalah contoh URLSearchParams request yang bisa dipakai untuk mendapatkan image welcome/leave template.

{
  "name": "Your Name",
  "profile": "url profile",
  "background": "url background",
  "type": "welcome"
}

Contoh Code

Berikut adalah contoh code yang bisa di pakai untuk mendapatkan image tersebut.

const apiUrl = 'url endpoint'
const params = new URLSearchParams({
    name: 'Your Name',
    profile: 'url profile',
    background: 'url background',
    type: 'welcome'
}).toString();

const fullUrl = `${apiUrl}?${params}`

Const Code

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

Params Request

Keterangan untuk params request URLSearchParams.

Field Type Description
name String Nama pengguna.
profile URL URL foto profil pengguna.
background URL (816x344) URL gambar latar belakang.
type String Jenis notifikasi ("welcome" atau "goodbye").