MateBot
  • Welcome to MateBot
  • Why MateBot ?
  • Getting started
  • GUIDES
    • Bots
    • Commands
    • Conversations
    • Debugging
    • Chats
    • Moderations
  • âŒ¨ī¸SCRIPTING
    • â„šī¸Introduction
    • 🚀API
    • đŸ’ŦConversations
    • 🎲Random
    • đŸ“ļHTTP
    • 🧊Resource
    • đŸŦStorage
    • 🎹Keyboard
    • đŸƒâ€â™‚ī¸Run Command
Powered by GitBook
On this page
  • GET
  • POST
  1. SCRIPTING

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; 
})

PreviousRandomNextResource

Last updated 1 year ago

âŒ¨ī¸
đŸ“ļ