zegami-sdk v1.1.6
zegami-js-sdk
An npm-installed node-based SDK for collection control, image downloading, file uploading, etc. using javascript.
Installation
Install this package in your node project using npm install --save zegami-sdk
Usage
Create a ZegamiClient instance using your username and password or a previously generated auth token. This will authenticate any requests made through it using a stored token.
const createClient = require('zegami-sdk');
const zClient = await createClient({
username,
password,
token,
});
Further actions are carried out through this client. For example - to obtain your user information, try:
const printUserInfo = async () => {
let info = await zClient.userInfo;
console.log(`userInfo:`, info);
}
Early Development
Please check back later for more features.
Development Tips
npm link
Clone this SDK and navigate to the directory, and enter npm link
. Then, navigate to the application being worked on alongside the SDK
and enter npm link zegami-sdk
. Any changes made to the cloned repository will be instantly reflected in the application during development.