Skip to content

v0.3.0

Choose a tag to compare

@emmenko emmenko released this 11 Feb 00:11
· 688 commits to master since this release

The SphereClient supports now create resource.

// example

var product = {
  'name': {
    'en': 'Foo'
  },
  'slug': {
    'en': 'foo'
  },
  ...
}
sphere_client.products.save(product)
.then(function(result){
  // a JSON object containing a result
})
.fail(function(error){
  // either the request failed or was rejected (the response returned an error)
})

Improvements: