Releases: commercetools/sphere-node-sdk
Releases · commercetools/sphere-node-sdk
v0.2.0 - Support query request
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
Add support for productProjections
service
v0.1.1 - Handle 404 responses
Return a SPHERE.IO JSON response error for 404 responses
// example
{
"statusCode": 404
"message": "Endpoint '/products/foo' not found."
}
v0.1.0 - Add services
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()