Gist 1.0
Neoxr API Fetcher (@neoxr/api)
Wildan Izzudin
• 26/01/24 12:04:31 • Javascript • 54 Views • 323 B
const { NeoxrApi } = new(require('@neoxr/api')) // recommend making it as global variable const Api = new NeoxrApi('https://api.neoxr.my.id/api', 'yntkts') Api.neoxr('/gemini-chat', { q: 'Hai' }).then(console.log) // async/await version const json = await Api.neoxr('/gemini-chat', { q: 'Hai' }) console.log(json)
Copy
Share
Raw
Embed
Print
Download