GetFullView

From Gvp-public
Revision as of 22:23, 27 August 2014 by Rcalvo (talk | contribs) (Created page with "{{Api_Method_Spec| 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 avail...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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)
  • catalogType (int, optional)


Returns

Returns a JSON object containing a JSON with the personal recommendation as SimpleItem.

Example:

{

"Content": {
"ItemList": [
Array of SimpleItem objects
]
}

}


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


See also