Install the package
bash
# npm
npm install @buzzbip/sdk
# yarn
yarn add @buzzbip/sdk
# pnpm
pnpm add @buzzbip/sdkConfigure your API key
Store your API key in an environment variable. Generate one at app.buzzbip.com → Settings → Developer → API Keys.
bash
# .env
BUZZBIP_API_KEY=bb_live_xxxxxxxxxxxxxxxxInitialize the client
typescript
import { BuzzBip } from '@buzzbip/sdk';
const buzzbip = new BuzzBip({
apiKey: process.env.BUZZBIP_API_KEY!,
// Optional: override base URL for staging
// baseUrl: 'https://api.staging.buzzbip.com/v1',
});TypeScript configuration
The SDK ships with its own type definitions. No additional @types package is required. Ensure your tsconfig.json targets ES2020 or later for native fetch support.
