Difference between revisions of "GetChannelSimpleProductsStb"

From Gvp-public
Jump to navigation Jump to search
(Created page with "{{Api_Method_Spec| Description= <span style="color:red">'''( CANDIDATE TO BE DEPRECATED -> Move to use GetChannelCatalogItem )'''<span> Returns the list of products inside a ...")
 
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
 +
{{Deprecated|Message=This method has been deprecated in GVP 3.2. Please use [[GetChannelCatalogItems]] instead}}
 +
 
{{Api_Method_Spec|
 
{{Api_Method_Spec|
 
Description=
 
Description=
<span style="color:red">'''( CANDIDATE TO BE DEPRECATED -> Move to use GetChannelCatalogItem )'''<span>
 
 
 
Returns the list of products inside a channel. It can't be returned all product in all sub channel.
 
Returns the list of products inside a channel. It can't be returned all product in all sub channel.
 
The result consider that the result is default filtered by [[AdultFilterType]].NonAdultOnly and [[MovieType]].(Movie and Season).
 
  
 
This method can be used by logged or anonymous login.
 
This method can be used by logged or anonymous login.
Line 18: Line 16:
 
}}
 
}}
 
{{Api_Parameter|
 
{{Api_Parameter|
ParamName=channelIds
+
ParamName=offset
 
|ParamType=int
 
|ParamType=int
|ParamRequired=required
 
|ParamDescription=List of channel ID that wants the result separated by comma.
 
}}
 
{{Api_Parameter|
 
ParamName=includeChildMovies
 
|ParamType=bool
 
 
|ParamRequired=optional
 
|ParamRequired=optional
|ParamDescription=Flag to set if the result should be contain all Movies in all sub channels from the specified in the channelId parameter. The default value is false.
+
|ParamDescription=The offset number of the returned values for this request
 
}}
 
}}
 
{{Api_Parameter|
 
{{Api_Parameter|
ParamName=typeFilter
+
ParamName=limit
|ParamType=String
+
|ParamType=int
 
|ParamRequired=optional
 
|ParamRequired=optional
|ParamDescription=List of numbers separated by comma with the [[MovieType]] to filter the result. Default set to Movie and Season (1, 3).
+
|ParamDescription=The limit number of values for this request
 
}}
 
}}
 
{{Api_Parameter|
 
{{Api_Parameter|
ParamName= adultFilter
+
ParamName=channelId
|ParamType= [[adultFilterType]]
+
|ParamType=int
|ParamRequired=optional
+
|ParamRequired=required
|ParamDescription=Type to represent Unknown, All, AdultOnly or NonAdultOnly. If the content is for adult and/or not adult or both. The default value is NonAdultOnly.
+
|ParamDescription=ID channel that wants the result.
}}
 
{{Api_Parameter|
 
ParamName= productTypeFilter
 
|ParamType= [[productType]]
 
|ParamRequired=optional
 
|ParamDescription=List of [[ProductType]] separated by comma to filter the result.
 
 
}}
 
}}
 +
  
 
|Returns=
 
|Returns=
Returns a JSON object containing the [[ChannelCount]] for each channel.
+
Returns a JSON object containing an array of [[Product]].
  
 
'''Example:'''
 
'''Example:'''
Line 80: Line 67:
 
{{!}} Initial method design
 
{{!}} Initial method design
 
{{!}} Harley Cabral
 
{{!}} Harley Cabral
 +
{{!}}-
 +
! 3.2
 +
{{!}} Method deprecated
 +
{{!}} Francisco Milagro
 
{{!}}}
 
{{!}}}
 +
  
 
|SeeAlso=
 
|SeeAlso=
 +
*  [[GetChannelCatalogItems]]
 
}}
 
}}

Latest revision as of 06:08, 21 August 2015

Warning.png

This method has been deprecated in GVP 3.2. Please use GetChannelCatalogItems instead


Description

Returns the list of products inside a channel. It can't be returned all product in all sub channel.

This method can be used by logged or anonymous login.

Parameters

  • token (String, required)
A valid token for identifying the API session context. The token can be anonymous or logged.
  • offset (int, optional)
The offset number of the returned values for this request
  • limit (int, optional)
The limit number of values for this request
  • channelId (int, required)
ID channel that wants the result.


Returns

Returns a JSON object containing an array of Product.

Example:

{

"Offset": 0,
"Limit": 100,
"Count": 1,
"List":
[ Array of Product object ]

}


Exceptions

  • None


Caching

This method is cached.


Known issues

  • None


Version history

API Version Number Change description Changes author
1.0 Initial method design Harley Cabral
3.2 Method deprecated Francisco Milagro


See also