GitKraken Glo API documentation
npm:
npm install -S @axosoft/glo-sdk
yarn
yarn add @axosoft/glo-sdk
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);
}