Equals

1
Last updated 7 months ago

Get all digital products

In the example below, we will make a request to get all digital products from the Moltin catalog.

cURL
JavaScript SDK
Swift SDK
curl -X GET https://api.moltin.com/v2/products?filter=eq(commodity_type, digital) \
-H "Authorization: Bearer XXXX"
const MoltinGateway = require('@moltin/sdk').gateway
const Moltin = MoltinGateway({
client_id: 'X'
})
Moltin.Products.Filter({ eq: { commodity_type: 'digital' } })
.All()
.then(products => {
// Do something
})
let moltin = Moltin(withClientID: "<your client ID>")
moltin.product.filter(operator: .eq, key: "commodity_type", value: "digital").all {
// Do something
}