gizmovsky
v1.0.5
Published
Unofficial SDK for Gizmo API
Maintainers
Readme
Gizmo SDK
Unofficial SDK for Gizmo API v1, v2, v3 (alpha)
Features
- Support for multiple API versions (v1, v2, v3)
- Authorization via username/password
Installation
npm install gizmovskyUsage Example
import { GizmoSDK } from 'gizmo-sdk';
const config = {
ip: '127.0.0.1',
port: 80,
ssl: false,
username: 'admin',
password: 'admin',
};
const sdk = new GizmoSDK(config);
// Example: Get users (v1)
const users = await sdk.v1.users.getUsers();
// Example: Get products (v2)
const products = await sdk.v2.products.getAll();Custom Requests
You can use the underlying client for custom requests:
const client = sdk.client;
const result = await client.request('get', '/v2.0/any-endpoint', { body1: "value" }, { param1: 'value' });Contributing
Pull requests and issues are welcome!
License
MIT
