CHATTG1 / starling-developer-sdk

The official JavaScript development kit for building on the Starling API

Home Page:https://developer.starlingbank.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Starling Javascript SDK

npm version

Documentation

The documentation for our SDK can be found here.

Installation

$ npm install --save starling-developer-sdk

Usage

const Starling = require('starling-developer-sdk');
// or 
import Starling from 'starling-developer-sk'
const client = new Starling({
    accessToken: '<oauth access token>'
});

client.getBalance()
    .then(({data}) =>  console.log(data))
    .catch(err => console.log(err));

Developing the SDK

Install dependencies as follows

$ npm install --save

The following scripts are at your disposal:

$ npm run <script> Description
clean Removes the compiled code.
build Compiles the application to disk (dist/ by default).
lint Lint all .js files.
test Runs unit tests with mocha.
test-verbose Runs unit tests with debug logging.

Developing the docs locally

You can develop the docs locally by running a jekyll server. Checkout the gh-pages branch and execute

$ bundle install
$ bundle exec jekyll serve

This depends on ruby and bundler (see here for more info on Jekyll and Github Pages)

About

The official JavaScript development kit for building on the Starling API

https://developer.starlingbank.com


Languages

Language:JavaScript 98.8%Language:Shell 1.2%