BrowseClient#resolveBrowseEntity(request, options);
Used to resolve some browse entity without knowing beforehand which type will be returned. This is useful if the caller has a URI that can match a Category, Product, or Content but don’t know before hand which entity will be returned.
Parameter | Type | Required? | Description |
---|---|---|---|
|
✅ |
The request details ("uris" to resolve against) |
|
|
❌ |
Options passed to the HTTP request call to customize the request configuration. |
This function returns a BrowseEntityResponse.
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 response = await browseClient.getBulkContentItems({
contentResolverRequests: [
{
requestId: 'one',
modelName: 'Banner Image',
},
{
requestId: 'two',
modelName: 'Landing Page',
},
],
},
{
locale,
accessToken,
});
console.log(response);