0.9.0 • Published 6 years ago

@tillhub/node-sdk v0.9.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
6 years ago

Tillhub Node.js SDK js-standard-style semantic-release codecov

Abstraction for the Tillhub API

Getting Started

npm i @tillhub/node-sdk

A simple use case for consumers is making authenticated requests with token they can get from different auth schemes and or resources, e.g. from a user, a register a service account, etc. We are abstracting this in the auth class(es).

const Auth = require('@tillhub/node-sdk').v1.Auth
const auth = new Auth()
// or
// const auth = new Auth({ base: 'https://staging-api.tillhub.com'})

auth.loginServiceAccount('EDDB2494C2434EFE948655D6BA27E69A', '1bc3d7a5-48e5-46de-81e8-4205ee52130f', (err, body) => {
  if (err) throw err

  console.log('==============Token===============')
  console.log(body.token)
  console.log('===========client account=========')
  console.log(body.user)
  console.log('==================================')
})

Docs

Visit the API documention here or from the tree.

License

Apache-2.0

0.9.0

6 years ago

0.8.1

6 years ago

0.8.0

6 years ago

0.7.0

6 years ago

0.6.0

6 years ago

0.5.6

6 years ago

0.5.5

6 years ago

0.5.4

6 years ago

0.5.1

6 years ago

0.5.0

6 years ago

0.4.5

6 years ago

0.4.4

6 years ago

0.4.3

6 years ago

0.4.2

6 years ago

0.4.1

6 years ago

0.4.0

6 years ago

0.3.0

6 years ago

0.2.0

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago