@moonr/api
v0.0.1
Published
Fetcher for AlyaChan API
Downloads
268
Readme
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