0.1.1 • Published 6 months ago
@moneta-network/publisher-gateway-sdk v0.1.1
Publisher Gateway JavaScript/TypeScript SDK
Overview
This SDK provides a TypeScript/JavaScript interface for interacting with the publisher Gateway system.
Installation
npm install @moneta-network/publisher-gateway-sdkQuick Start
import { PublisherGatewayClient } from '@moneta-network/publisher-gateway-sdk';
const client = new PublisherGatewayClient({
lago: { baseUrl: 'https://lago.example.com', apiKey: 'lago-token' },
revenue: { baseUrl: 'https://revenue.example.com', apiKey: 'revenue-key' }
});
// Use the Lago sub-client
await client.lago.createCustomer({ /* ... */ });
// Use the Revenue sub-client
await client.revenue.getTaxes({ country: 'US' });Development
Prerequisites
- Node.js (v14 or higher)
- npm or yarn
Setup
- Clone the repository
- Install dependencies:
npm installBuild
npm run buildTest
npm testDocumentation
To run the documentation locally:
npm run docs:devContributing
Please read our contributing guidelines before submitting PRs.
License
ISC