client.block
name
(string): The name of the block to fetch.
'ProductCard'
key
(string): The key of the block to fetch.
'123'
config
(object, optional): Additional configuration options.
requestUrl
(string, optional): A URL that will be used to track the origin of the request.contextKey
(string, optional): A token that identifies the user’s context state (locale, region).Expand source
client.listing
name
(string): The name of the block to fetch.
'CategoryListing'
params
(object, optional): The parameters to pass to the listing.
{ categoryId: '<category-id>' }
config
(object, optional): Additional configuration options.
query
(object, optional): Query parameters to pass to the listing.
filter
(array): An array of filter objects to filter results.sort
(array): An array of sorting options to sort results.search
(string): A text search query.limit
(number): Limit the number of results returned.page
(number): Paginate results.requestUrl
(string, optional): A URL that will be used to track the origin of the request.contextKey
(string, optional): A token that identifies the user’s context state (locale, region).Expand source
client.page
slug
(string): The URL slug of the page (without protocol).
demo-shop.com/uk/women/shoes/running
config
(object, optional): Configuration options.
requestUrl
(string, optional): A URL that will be used to track the origin of the request.contextKey
(string, optional): A token that identifies the user’s context state (locale, region).Expand source
client.context
token
(string): The token of the context.
'ae0d4981-c363-4d5a-a49e-1f053d49f2f7'
Expand source
client.contextList
token
(string, optional): The token of the context.
'ae0d4981-c363-4d5a-a49e-1f053d49f2f7'
Expand source
client.contextUpdate
context
(object): The context details to update.
region
(string): The region to update.locale
(string): The locale to update.token
(string): The token of the context.Expand source