Git Product home page Git Product logo

glo-sdk's Introduction

GitKraken Glo JavaScript SDK

Build Status

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);
}

glo-sdk's People

Contributors

axosoft-dans avatar dependabot[bot] avatar implausible avatar james-quigley avatar kyjus25 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

glo-sdk's Issues

[Feature Request] OAuth2 Public Client Support

TLDR: Is adding OAuth2 support for public clients (as opposed to closed servers) planned?

Hey, I know this is probably the wrong place to post, but I have a feature request for the new Glo API.

As of now, the Glo OAuth2 API only supports the Web Application Flow, which assumes a trusted server run by the app developer to do all the API calls.

Client-side (e.g. by Android app) API calls aren't possible without revealing the API secret to users (which is bad practice) or asking the user to create a personal access token (bad UX).

OAuth2 provides two solutions:

(Asking because I'm writing a CLI/CUI version of Glo, that calls the API directly)

Get Boards functionality

Need to implement Get Boards functionality. Should have a base function that gets all boards, but takes in options for how to filter.

Then can create a variety of helper functions such as: getArchivedBoards()

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.