Module to fetch api data very easily with efficient and readable code
for the get method
Api.get([endpoint], {[parameter]})
for the post method
Api.post([endpoint], {[parameter]})
API_ENDPOINT = 'https://api.alyachan.dev/'
API_KEY = 'yourkey'
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