GetNodeRecommendations
Description
Get a Recommendation from the GVP Platform. The GetNodeRecommendations is a ByPass method to use the OpenGVP to get all contents analysed and that is the recommendation for the connected user.
The suggestion is made in the OpenGVP and sent to the UNIAPI in a JSON format. All kinds of recommendation are separated by Sources. each source represent a kind of content are recommended.
1 - MostViewed
2 - BestRated
3 - Personal
4 - Editorial
Results are presented in groups inside a ViewSet. Each group of ViewSet represent each source. In the request, a parameter SOURCE can be defined to filter the content recommended, for exemple, if the request wants only the MostViewed Recommendation, send 1 in the source parameter. This filed accept all values (1,2,3,4) separated by comma.
The related methods is:
- GetNodeRecommendationsByView
- GetNodeRecommendationsCombined
And the legacy method:
Notes: The OpenGVP can be active/desactive and configured in each Environment and Instance to be used.
GetNodeRecommendations can be used in some node of channels, since from RootChannel and others.
This method only can be used by logged user.
Parameters
- token (String, required)
- A valid token for identifying the API session context. The token can be anonymous or logged.
- channelId (int, required)
- contentType (int, optional)
- num (int, optional)
- sources (int, optional)
- catalogType (int, optional)
Returns
Returns a JSON object containing a JSON with the personal recommendation as SimpleItem.
Example:
{
- "Content": {
- "ViewSet": {
- "1": [
- Array of SimpleItem objects
- ]
- "1": [
- }
- "ViewSet": {
- }
}
Exceptions
- None
Caching
This method is not cached.
Known issues
- None
Version history
API Version Number | Change description | Changes author |
---|---|---|
2.3 | Initial method design | Harley Cabral |