aakhilv
v1.1.0
Published
The official api wrapper for aakhilv's free-to-use API services.
Maintainers
Readme
api.aakhilv.me
The official api wrapper for aakhilv's free-to-use API services.
Installation
npm install aakhilvImporting
let aakhilv = require("aakhilv");Usage
Requests are made in the format of:
aakhilv.get(string endpoint, num parameter);Where string endpoint is a string value of any one of the available endpoints listed down below, and num parameter is an optional integer value defaulting to 1 if not specified.
// Without 'num' parameter
aakhilv.get("fun/facts").then(data => {
console.log(data);
});
// With 'num' parameter
aakhilv.get("fun/facts", 3).then(data => {
console.log(data);
});
/* For asynchronous functions */
// Without 'num' parameter
let data = await aakhilv.get("fun/facts");
console.log(data);
// With 'num' parameter
let data = await aakhilv.get("fun/facts", 3);
console.log(data);Endpoints
|Category|Endpoint|
|---|---|
|fun|fun/facts|
|fun|fun/puzzles|
|fun|fun/wyr|
|bio|bio/terms|
