Skip to content

The official JavaScript development kit for building on the Starling API

License

Notifications You must be signed in to change notification settings

starlingbank/starling-developer-sdk

Repository files navigation

Starling Javascript SDK

JavaScript Standard Style NPM Package Version Bundle size

Documentation

The documentation for our SDK can be found here.

Installation

npm install starling-developer-sdk

Usage

const Starling = require('starling-developer-sdk')
// or
import Starling from 'starling-developer-sdk'

const client = new Starling({
  // apiUrl: 'https://api-sandbox.starlingbank.com',
  accessToken: '<oauth access token>'
})

client.account.getAccounts()
  .then(({ data }) => console.log(data))
  .catch(err => console.log(err))