@moonr/api

0.0.1 • Public • Published

Official Fetcher for AlyaChan API

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

How to use ??

for the get method

Api.get([endpoint], {[parameter]})

for the post method

Api.post([endpoint], {[parameter]})

Set the path first in .env

API_ENDPOINT = 'https://api.alyachan.dev/'
API_KEY = 'yourkey'

Example

const Api = new (require('@moonr/api'))
const json = await Api.get('api/tiktok', {
   url: 'https://vm.tiktok.com/ZSR7c5G6y/'
})
console.log(json)

^ Thank you for using our API service

Readme

Keywords

none

Package Sidebar

Install

npm i @moonr/api

Weekly Downloads

3

Version

0.0.1

License

MIT

Unpacked Size

3.6 kB

Total Files

3

Last publish

Collaborators

  • moonr