Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New design code #1

Open
wants to merge 40 commits into
base: master
Choose a base branch
from
Open

New design code #1

wants to merge 40 commits into from

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