🇧🇷 LEIAME em Português
- Isomorphic (Browser, Node, ReactNative)
- TypeScript type definitions
npm install @coreh/zoop
import Zoop from '@coreh/zoop';
// Create API Client
const zoop = new Zoop(API_KEY);
// Marketplace Endpoint
const marketplace = zoop.marketplace(MARKETPLACE_ID);
// Buyer Endpoint
const buyer = marketplace.buyer(BUYER_ID);
// Retrieve Buyer Info (async)
const buyerInfo = await buyer.get();
// List Buyers (async iterator)
for await (const buyerInfo of marketplace.listBuyers()) {
// ...
}
- Marketplace (Retrieve)
- Buyer (Create, Retrieve, List)
- Transaction (Create, Retrieve, List)
- Seller (Create, Retrieve, List)
MIT