Skip to content

Conversation

@bsautron
Copy link

@bsautron bsautron commented Dec 8, 2015

  • When a error occurs, it send once in the callback.
  • All errors is an ApiError class which have the status code of response, and array of errors
  • Easy to add a new Api path like this:
// add to the `api` attribute
'getProfile': {method: 'GET/json', path: '/user/v4/profile', auth: true}

// and call the methode:
api.getProfile(callback)
// If data required:
api.sendSamples(data, callback)
  • Auto refresh token 1 day before expiry ✨

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants