Marketing API Version

ProductSet

Fields

filter, id, name

ProductSet.get_product_groups (fields, params)

Returns iterator that lists all the product groups associated with the product set.

Name Type Description Required

fields

array

A list of fields to read.

No

params

map

A mapping of request parameters where a key is the parameter name and its value is a string or an object which can be JSON-encoded.

No

Sample Code

product_set = ProductSet('1665481600387263')
product_groups = product_set.get_product_groups(fields=[
    Product.Field.title,
    Product.Field.price,
])
print product_groups

ProductSet.get_products (fields, params)

Returns iterator that lists all the product associated with the product set.

Name Type Description Required

fields

array

A list of fields to read.

No

params

map

A mapping of request parameters where a key is the parameter name and its value is a string or an object which can be JSON-encoded.

No

Sample Code

product_set = ProductSet('1665481600387263')
products = product_set.get_products(fields=[
    Product.Field.title,
    Product.Field.price,
])
print products