SDKs
Suger SDKs
Integrate with your language of choice. Official SDKs for the most popular programming languages.
Node.js
JavaScript/TypeScriptFull-featured SDK for Node.js with TypeScript support
$ npm install @suger/sdk
Python
Python 3.8+Pythonic SDK with async support and type hints
$ pip install suger-sdk
Java
Java 11+Enterprise-ready SDK for Java applications
$ implementation 'io.suger:sdk:1.0.0'
Simple & Intuitive
Get started with just a few lines of code
example.ts
import { SugerClient } from '@suger/sdk';
const client = new SugerClient({
apiKey: process.env.SUGER_API_KEY
});
// Create a private offer
const offer = await client.offers.create({
productId: 'prod_abc123',
buyerId: 'buyer_xyz789',
pricing: {
type: 'fixed',
amount: 10000,
currency: 'USD'
}
});
console.log('Offer created:', offer.id);Need a different language?
Our REST API works with any language. Check out the full API documentation.