@axosoft/glo-sdk
v2.0.0
Published
JavaScript SDK for GitKraken Glo APIs
Downloads
26
Readme
GitKraken Glo JavaScript SDK
GitKraken Glo API documentation
How to Use
Install
npm:
npm install -S @axosoft/glo-sdk
yarn
yarn add @axosoft/glo-sdk
Example Usage
You must pass in an auth token. All method calls return a promise, so you should properly handle errors with a .catch or a try/catch block if using async/await.
// Import options
const GloSDK = require('@axosoft/glo-sdk');
import GloSDK from '@axosoft/glo-sdk';
// Usage
GloSDK(authToken).boards.getAll()
.then(boards => console.log(boards))
.catch(error => console.error(error));
try {
const boards = await GloSDK(authToken).boards.getAll();
} catch (error) {
console.log(error);
}