ContentClient#getContentItems(request, options);
Operations for retrieving Content Items.
Parameter | Type | Required? | Description |
---|---|---|---|
|
✅ |
Represents a request to retrieve ContentItems from a commerce-facing context. |
|
|
❌ |
Options passed to the HTTP request call to customize the request configuration. |
This function returns a ContentResolverResponse.
Parameter | Type | Required? | Description |
---|---|---|---|
|
✅ |
Represents a request to retrieve bulk ContentItems from a commerce-facing context. |
|
|
❌ |
Options passed to the HTTP request call to customize the request configuration. |
This function returns a BulkContentResolverResponse.
const bulkContentItems = await contentClient.getBulkContentItems({
contentResolverRequests: [
{
requestId: 'one',
modelName: 'Banner Image',
},
{
requestId: 'two',
modelName: 'Landing Page',
},
],
},
{
locale,
accessToken,
});
console.log(bulkContentItems);