1.5.3 • Published 1 year ago

@neoxr/api v1.5.3

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

Official Fetcher for Neoxr API

Module to fetch api data very easily with efficient and readable code

How to use ??

Api.neoxr([endpoint], [parameter])

Example

Here I give an example of fetching the Google Gemini Chat API with gemini-chat as endpoint and q as parameter.

const NeoxrApi = 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)

Result :

1.5.3

1 year ago

1.5.2

1 year ago

1.5.1

1 year ago

1.4.1

1 year ago

1.3.1

1 year ago

1.2.1

1 year ago

1.1.1

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago