Bot Designer for Discord
Example usage of /encode
endpoint using BDFD
$httpAddHeader[apikey;<YOUR-API-KEY>]
$httpPost[https://bdfddata.rickyjs.xyz/<version>/encode;{
text: 'test'
}]
$httpResult OR $httpResult[details]
Discord.js
Example usage of /encode
endpoint using Discord.js
const axios = require('axios');
(async () => {
return await axios.post('https://bdfddata.rickyjs.xyz/<version>/encode',
{ text: 'test'
}, {
headers: {
'apikey': <YOUR-API-KEY>,
}
}).then(res=>res.data)
})()
Code 200
API succeeded and details were fetched.
{
status: 200,
details: 'l%0a7o7I%ll%0a22o22U%ll%0a8o8U%ll%0a7o7I%l'
}}
Code 400
An error occurred that stopped execution.
{
status: 400
error: 'Cannot read ... (This can vary)'
}