Javascript “fetch”
const raw = await fetch('https://kuing.in/api/pendekin/createlink', {
method: 'POST',
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json'
},
body: JSON.stringify({ url: 'https://www.google.com' })
});
const result = await raw.json();
if (result.type == 'success') {
console.log(result.data)
} else {
console.log(result)
}