Difference between revisions of "GetFullView"
Jump to navigation
Jump to search
Line 67: | Line 67: | ||
: <span style="color: #a11;">"Content"</span>: { | : <span style="color: #a11;">"Content"</span>: { | ||
:: <span style="color: #a11;">"ItemList"</span>: [ | :: <span style="color: #a11;">"ItemList"</span>: [ | ||
− | ::: Array of SimpleItem objects (OpenGVP type) | + | ::: Array of [[SimpleItem]] objects (OpenGVP type) |
:: ] | :: ] | ||
: } | : } |
Latest revision as of 09:33, 13 July 2015
Description
Call to provide a flat list of the full contents for one VIEW (just one Source) in a node. Note that the view is not paged, i.e. all items available in the view will be returned. The client is then free to visualize it through any suitable means (paged views, scrolling, etc).
The Num parameter indicates how many elements should be returned. The actual amount returned may be less (if the view contains less than Num items). There is a cap to the maximum value accepted in Num, currently set at 50 (requests for larger amounts will be silently cut to that limit), because the view does not contain more than those items.
Parameters
- token (String, required)
- A valid token for identifying the API session context. The token can be anonymous or logged.
- channelId (int, required)
- A number of a channel Id that wants to get a recommendation.
- num (int, optional)
- Quantity of recommendation wants to be returned. Each source will return the quantity specified by num parameter.
- source (int, optional)
- Number that represent a kind of content wants to be filter the result. Allowed only one of then.
1 - MostViewed 2 - BestRated 3 - Personal 4 - Editorial
- contentType (int, optional)
- Number that indicates the content type of the recommendation
0 - Any: It returns both Movie and Series 1 - Movie: Used for movies 2 - Series: Used for TV series
- catalogType (int, optional)
- CatalogType: Number that indicates the sub-catalog to retrieve recommendations from (Subscrition or transactional)
0 - Any: Transactional or subscription (hired by the user). Default for getNodeRecommendations and GetFullView 1 - Subscription: Contents from subscriptions rented by the user (and inside the subscription sub-catalog). Default for GetRotRecommendationsCombined and GetRootREcommendationsByView 2 - Transactional: Contents from transactional sub-catalog
Returns
Returns a JSON object containing a JSON with the personal recommendation.
Example:
{
- "Content": {
- "ItemList": [
- Array of SimpleItem objects (OpenGVP type)
- ]
- "ItemList": [
- }
}
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 |