public class GetPopularEntitiesRequest extends GetPopularOrRecentEntitiesRequest
behaviorType, CURRENT_USER_PLACEHOLDER, entityType, forUserId, resultsOptions
customData
Constructor and Description |
---|
GetPopularEntitiesRequest(java.lang.String behaviorType)
Retrieve the globally most common products
|
GetPopularEntitiesRequest(java.lang.String behaviorType,
java.lang.String forUserId)
Retrieve the globally most common entities for a specfic user
|
GetPopularEntitiesRequest(java.lang.String behaviorType,
java.lang.String forUserId,
java.util.List<java.lang.String> entityType) |
Modifier and Type | Method and Description |
---|---|
static GetPopularEntitiesRequest |
forCurrentUser(java.lang.String behaviorType,
java.util.List<java.lang.String> entityType)
Creates a request to get the most popular entities for the current user.
|
addCustomData
public GetPopularEntitiesRequest(java.lang.String behaviorType, java.lang.String forUserId, java.util.List<java.lang.String> entityType)
behaviorType
- interaction or navigation type to include (such as click, purchase or search).forUserId
- a user ID to retrieve the most common/recent entities for that user or null to retrieve the globally most common/recent entities.
GetGetPopularOrRecentEntitiesRequest#CURRENT_USER_PLACEHOLDER
can be specified to use the user ID from the User-Id request header.entityType
- entity types to include (such as Product or Query)public GetPopularEntitiesRequest(java.lang.String behaviorType, java.lang.String forUserId)
behaviorType
- interaction or navigation type to include (such as click, purchase or search).forUserId
- a user ID to retrieve the most common/recent entities for that user or null to retrieve the globally most common/recent entities.
GetGetPopularOrRecentEntitiesRequest#CURRENT_USER_PLACEHOLDER
can be specified to use the user ID from the User-Id request header.public GetPopularEntitiesRequest(java.lang.String behaviorType)
behaviorType
- interaction or navigation type to include (such as click, purchase or search).public static GetPopularEntitiesRequest forCurrentUser(java.lang.String behaviorType, java.util.List<java.lang.String> entityType)
behaviorType
- interaction or navigation type to include (such as click, purchase, or search).entityType
- entity types to include (such as Product or Query).GetPopularEntitiesRequest
for the current user.