GithubHelp home page GithubHelp logo

sphereio / sphere-node-connect Goto Github PK

View Code? Open in Web Editor NEW
2.0 31.0 2.0 109 KB

Quick and easy way to connect your Node.js app with SPHERE.IO.

Home Page: http://dev.sphere.io/

License: MIT License

CoffeeScript 98.19% Shell 1.81%

sphere-node-connect's Introduction

SPHERE.IO icon

This repo has been integrated into sphere-node-sdk, please use related npm package as well.

sphere-node-connect's People

Contributors

emmenko avatar hajoeichler avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sphere-node-connect's Issues

Callback: Error object is `null` although request was not successful

I would expect that the callback is called with error not null when the REST request wasn' sucessful

Example:

@sync = new OrderSync config: Config.staging

@sync._rest.DELETE "/product-types/07d76cec-4c92-4c51-bf85-074ab329dcbc" (error, response, body) =>
  console.log "error #{error}"
  console.log "response #{response}"
  console.log "body #{body}"

# console log
error null
response [object Object]
body {"statusCode":400,"message":"Missing version number","errors":[{"code":"InvalidOperation","message":"Missing version number"}]}

Provide functionality to renew the expired access token

If application is running for more than 3 days (which is the default expiration time for the OAuth2 access token), then access token would expire. At this point it would be nice if sphere-node-connect would be able to automatically (and transparently) renew it.

Because of the asynchronous nature of this operation, all incoming requests should be buffered and resumed as soon as new access token is arrived and ready to be used for the other HTTP requests.

Move Logger to a separate repo

In order to make the Logger class extendable without requiring the sphere-node-connect package we should move this in a separate repository (or integrate it in sphere-node-utils)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.