Difference between revisions of "SearchProducts"

From Gvp-public
Jump to navigation Jump to search
(Created page with "{{Api_Method_Spec| Description=Returns the... The method can be used by logged or anonymous user. |Parameters= {{Api_Parameter| ParamName=token |ParamType=String |ParamRequ...")
 
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
{{Deprecated|Message=This method has been deprecated in GVP 3.2. Please use [[SearchContent]] instead}}
 +
 
{{Api_Method_Spec|
 
{{Api_Method_Spec|
Description=Returns the...
+
Description=This method returns a list of products that match with the search. Currently is used SearchContent method instead.
  
The method can be used by logged or anonymous user.
 
  
 
|Parameters=
 
|Parameters=
Line 13: Line 14:
 
}}
 
}}
 
{{Api_Parameter|
 
{{Api_Parameter|
ParamName=offset
+
ParamName=channelId
 
|ParamType=int
 
|ParamType=int
|ParamRequired=optional
+
|ParamRequired=required
|ParamDescription=The offset number of the returned values for this request
+
|ParamDescription=Id of the channel that wants to return the object information.
 
}}
 
}}
 
{{Api_Parameter|
 
{{Api_Parameter|
ParamName=limit
+
ParamName=includeChildMovies
|ParamType=int
+
|ParamType=boolean
 
|ParamRequired=optional
 
|ParamRequired=optional
|ParamDescription=The limit number of values for this request
+
|ParamDescription=Requests the inclusion of the movies present in the channels below the one requested.
 
}}
 
}}
 
 
{{Api_Parameter|
 
{{Api_Parameter|
ParamName=channelId
+
ParamName=typeFilter
|ParamType=int
+
|ParamType=array
|ParamRequired=required
+
|ParamRequired=optional
|ParamDescription=
+
|ParamDescription=List of numbers separated by comma with the [[MovieType]] to filter the result.
 
}}
 
}}
 
{{Api_Parameter|
 
{{Api_Parameter|
ParamName=includeChildMovies
+
ParamName=adultFilter
|ParamType=bool
+
|ParamType=enum
 
|ParamRequired=optional
 
|ParamRequired=optional
|ParamDescription=
+
|ParamDescription=String separated by comma with the [[AdultFilterType]] to filter the result.
 
}}
 
}}
 
 
 
 
{{Api_Parameter|
 
{{Api_Parameter|
 
ParamName=filter
 
ParamName=filter
|ParamType=int
+
|ParamType=string
|ParamRequired=optional
+
|ParamRequired=required
|ParamDescription=
+
|ParamDescription=Complex filter for genreSearch i.e: {["Type": enum.GenreSearchType, "Value": "searchTerm"]}
 
}}
 
}}
 
{{Api_Parameter|
 
{{Api_Parameter|
ParamName=productType
+
ParamName=sort
|ParamType=
+
|ParamType=enum
 
|ParamRequired=optional
 
|ParamRequired=optional
|ParamDescription=
+
|ParamDescription=Id of a [[MovieSortType]] to order the result. The default is 2 (title).
 
}}
 
}}
 
 
 
{{Api_Parameter|
 
{{Api_Parameter|
ParamName=typeFilter
+
ParamName=productTrype
|ParamType=String
+
|ParamType=int
 
|ParamRequired=optional
 
|ParamRequired=optional
|ParamDescription=List of numbers separated by comma with the [[MovieType]] to filter the result.
+
|ParamDescription=
 
}}
 
}}
 
{{Api_Parameter|
 
{{Api_Parameter|
ParamName=adultFilter
+
ParamName=offset
 
|ParamType=int
 
|ParamType=int
 
|ParamRequired=optional
 
|ParamRequired=optional
|ParamDescription=String separated by comma with the [[AdultFilterType]] to filter the result.
+
|ParamDescription=The offset number of the returned values for this request
 
}}
 
}}
 
{{Api_Parameter|
 
{{Api_Parameter|
ParamName=sort
+
ParamName=limit
 
|ParamType=int
 
|ParamType=int
 
|ParamRequired=optional
 
|ParamRequired=optional
|ParamDescription=Id of a [[MovieSortType]] to order the result. The default is 2 (title).
+
|ParamDescription=The limit number of values for this request
 
}}
 
}}
 
 
 
 
 
  
 
|Returns=
 
|Returns=
Returns a JSON object containing a [[SubtitleJSON]] in JSON format.
+
Returns a JSON object containing all selected products in JSON format.
 
 
'''Example:'''
 
 
 
{
 
:    <span style="color: #a11;">"StatusCode"</span>: <span style="color: #164;">0</span>,
 
:    <span style="color: #a11;">"Severity"</span>: <span style="color: #164;">1</span>,
 
:    <span style="color: #a11;">"StatusMessage"</span>: <span style="color: #164;">"OK"</span>,
 
:    <span style="color: #a11;">"Content"</span>:
 
::    { <span style="color: #219;">[[SubtitleJSON]] objects</span> }
 
}
 
  
 
|Exceptions=
 
|Exceptions=
Line 95: Line 75:
  
 
|Cache=
 
|Cache=
This method is not cached.
+
This method is cached in anonymousOnly section.
  
 
|KnownIssues=
 
|KnownIssues=
Line 101: Line 81:
  
 
|VersionHistory=
 
|VersionHistory=
{{{!}} border="2" style="width:800px;" cellpadding="5" cellspacing="0"
+
<span style="color: #a11;">TO BE COMPLETED</span>
{{!}}-  style="background:#88ccff;font-size:110%"
 
! API Version Number
 
! Change description
 
! Changes author
 
{{!}}- valign="top"
 
! 1.0
 
{{!}} Initial method design
 
{{!}} Harley Cabral
 
{{!}}}
 
  
 
|SeeAlso=
 
|SeeAlso=
 +
* [[SearchContent]] method
 
}}
 
}}

Latest revision as of 07:55, 23 September 2015

Warning.png

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


Description

This method returns a list of products that match with the search. Currently is used SearchContent method instead.

Parameters

  • token (String, required)
A valid token for identifying the API session context. The token can be anonymous or logged.
  • channelId (int, required)
Id of the channel that wants to return the object information.
  • includeChildMovies (boolean, optional)
Requests the inclusion of the movies present in the channels below the one requested.
  • typeFilter (array, optional)
List of numbers separated by comma with the MovieType to filter the result.
  • adultFilter (enum, optional)
String separated by comma with the AdultFilterType to filter the result.
  • filter (string, required)
Complex filter for genreSearch i.e: {["Type": enum.GenreSearchType, "Value": "searchTerm"]}
  • sort (enum, optional)
Id of a MovieSortType to order the result. The default is 2 (title).
  • productTrype (int, optional)
  • offset (int, optional)
The offset number of the returned values for this request
  • limit (int, optional)
The limit number of values for this request


Returns

Returns a JSON object containing all selected products in JSON format.


Exceptions

None


Caching

This method is cached in anonymousOnly section.


Known issues

None


Version history

TO BE COMPLETED


See also