0.0.1 • Published 1 year ago

@moonr/api v0.0.1

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

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

0.0.1

1 year ago