BotMate
Search
⌃K
📶

HTTP

Make HTTP requests
Here are the methods you can use to make HTTP calls.

GET

Http.get("https://randomuser.me/api").then(({data}) => {
const response = data;
Bot.reply(response.results[0].name.first)
})

POST

const body = {}
Http.post("URL", body ).then(({data}) => {
const response = data;
})