@botterylabs/bottery-api
v1.3.0
Published
An API wrapper for the Bottery API
Downloads
1
Maintainers
Readme
The simple way to create AI agents for your needs
Getting started
- Install the module via npm:
npm i @botterylabs/bottery-api
- Create an instance of
BotteryClient
:
const client = new BotteryClient();
- Authenticate with the Bottery API:
await client.Connect(process.env.BOTTERY_API_KEY);
That's it, you're good to start using the API!
Example
import dotenv from "dotenv";
dotenv.config();
import BotteryClient from "./src";
const client = new BotteryClient();
(async () => {
const authRes = await client.Connect(process.env.API_KEY!);
if(!authRes){
console.error("Failed to authenticate");
return;
}
const response = await client.GetAgents();
console.log(`Agents found: `, response)
})()