based on MDCYT/Any-Bot
AnyAPI is an API interactor of MDCYT/Any-API by MDC
Basic constructor & login
import { Client } from "anybotapi"; const myAnyAPIClient = new Client({api_key: process.env.API_KEY});
With out api key login
const myAnyAPIClient = new Client({api_key: undefined});
With API key
// use an valid API key, this isnt valid xdd const api_key = "API_KEY"; const myAnyAPIClient = new Client({api_key})
Example:
const data = await client.routes.anime.hug(); console.log(data.image);
Using animals fun facts
const data = await client.routes.animals.dog(); console.log(data.fact);