$api
Fetch results from a JSON API with a GET method.

FUNCTION USAGE

  • $api[link;property]
This function only support GET Method for now.

USAGE GUIDE

$api[api link; property;other property;another;...]
  • api link : Link of the API
  • property : Property accessory to fetch the API
Lets just imagine we have API which gives us joke and we need to fetch
{ joke: "Time flies like an arrow. Fruit flies like a banana.", dadjoke: { joke: "Orion’s Belt is a huge waist of space." } }
Above is our API and now we are going to fetch it
$api[https://some-api.xyz;joke] : "Time flies like a arrow. Fruit flies like a banana"
$api[https://some-api.xyz/joke;dadjoke;joke] : "Orion’s Belt is a huge waist of space."
Above is just an example and if you try to copy paste it then you will get nothing other than error.
1
bot.Command({
2
name: "joke",
3
code: `
4
$title[$api[https://sv443.net/jokeapi/v2/joke/Any;setup]]
5
$color[#ff2050]
6
$description[$api[https://sv443.net/jokeapi/v2/joke/Any;delivery]]
7
`
8
})
Copied!
Last modified 10mo ago
Copy link
Contents
USAGE GUIDE