jargon-sdk
v0.1.10
Published
Type-safe Jargon API library for Javascript.
Downloads
27
Readme
Jargon
Type-safe Jargon API library for Javascript.
Installation
npm i jargon-sdk
Example Usage
import { Jargon } from 'jargon-sdk'
// var Jargon = require('jargon-sdk').Jargon
const jargon = new Jargon({
accessToken: '$ACCESS_TOKEN'
})
jargon.sessions.fetch('$SESSION_ID').then(function (session) {
...
})
Options
- accessToken: AccessToken to be included with all requests (optional)
- authToken: Authorization header token to be included with all requests (optional)
- environment: 'production', 'staging', or 'development'. Will default to 'development' if not specified. (optional)