Skip to content

Releases: commercetools/sphere-node-sdk

v0.2.0 - Support query request

06 Feb 13:21
Compare
Choose a tag to compare

The SphereClient supports now query requests with related query parameters.

// example

var sphere_client = new SphereClient({...})
sphere_client.products
.where('name(en="Foo")')
.where('id="1234567890"')
.whereOperator('or')
.page(3)
.perPage(25)
.fetch()

// HTTP request
// /{project_key}/products?where=name(en%3D%22Foo%22)%20or%20id%3D%221234567890%22&limit=25&offset=50

v0.1.2 - Add ProductProjectionService

03 Feb 10:13
Compare
Choose a tag to compare

Add support for productProjections service

v0.1.1 - Handle 404 responses

03 Feb 10:12
Compare
Choose a tag to compare

Return a SPHERE.IO JSON response error for 404 responses

// example
{
  "statusCode": 404
  "message": "Endpoint '/products/foo' not found."
}

v0.1.0 - Add services

03 Feb 10:10
Compare
Choose a tag to compare

Support following services for fetch and byId

  • carts
  • categories
  • channels
  • comments
  • customObjects
  • customers
  • customerGroups
  • inventories
  • orders
  • products
  • productTypes
  • reviews
  • shippingMethods
  • taxCategories
# example

client = new SphereClient Config

client.products.fetch()
client.customers.byId('1234567890').fetch()