https://github.com/coreh/zoop
💳 Unofficial JavaScript client for Zoop API / Cliente JavaScript Não-oficial para API Zoop
https://github.com/coreh/zoop
api api-client javascript node nodejs payment payment-gateway payment-processing typescript zoop
Last synced: 2 months ago
JSON representation
💳 Unofficial JavaScript client for Zoop API / Cliente JavaScript Não-oficial para API Zoop
- Host: GitHub
- URL: https://github.com/coreh/zoop
- Owner: coreh
- License: mit
- Created: 2018-06-06T05:28:17.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-12T23:20:34.000Z (over 7 years ago)
- Last Synced: 2025-04-12T22:35:22.677Z (9 months ago)
- Topics: api, api-client, javascript, node, nodejs, payment, payment-gateway, payment-processing, typescript, zoop
- Language: TypeScript
- Homepage:
- Size: 203 KB
- Stars: 11
- Watchers: 1
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# zoop - Unofficial Client for Zoop API
🇧🇷 LEIAME em Português
## About
- **Isomorphic**: Compatible with Browser, Node.JS and React Native environments
- **Written in TypeScript**: So you get type checking and autocomplete for all API Endpoints and parameters
- **Promises / Async Iterables based**: So you can use `async` and `await` (ES2016) and `for await` (ES2018) syntax.
## Installing
```bash
npm install @coreh/zoop
```
## Usage
```javascript
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()) {
// ...
}
```
## Implemented Endpoints
- `Marketplace`
- Retrieve
- `Buyer`
- Create
- Retrieve
- List
- `Transaction`
- Create
- Retrieve
- List
- `Seller`
- Create
- Retrieve
- List
- `Token`
- Create Card Token
- Create Bank Account Token
- Retrieve
## License
MIT