Difference between revisions of "SearchContent"

From Gvp-public
Jump to navigation Jump to search
(Created page with "{{Api_Method_Spec| Description= |Parameters= {{Api_Parameter| ParamName=token |ParamType=String |ParamRequired=required |ParamDescription=A valid token for identifying the A...")
 
Line 1: Line 1:
 
{{Api_Method_Spec|
 
{{Api_Method_Spec|
Description=
+
Description=The method used to get a list of CatalogItem from the GVP using a term, filterBy and searchFields. The result is an array of [[CatalogItem]] that contains all movies that respect the term and field filled.
 +
 
 +
The result is default ordered by the Unknow sort, it means that the result is returned by the registered order in the data base.
 +
 
 +
The method can be used by logged or anonymous user.
  
 
|Parameters=
 
|Parameters=

Revision as of 17:49, 19 September 2014

Description

The method used to get a list of CatalogItem from the GVP using a term, filterBy and searchFields. The result is an array of CatalogItem that contains all movies that respect the term and field filled.

The result is default ordered by the Unknow sort, it means that the result is returned by the registered order in the data base.

The method can be used by logged or anonymous user.

Parameters

  • token (String, required)
A valid token for identifying the API session context. The token can be anonymous or logged.
  • term (String, required)
A term that wants to request.
Default value is SearchFieldType.Unknown
  • descending (bool, optional)
Default value is false
  • includeAdult (bool, optional)
Default value is false
Default value is ImageType.Unknown
  • width (int, optional)
Default value is 0 (zero)
  • height (int, optional)
Default value is 0 (zero)


Returns

Returns a JSON object containing an array of CatalogItem object.

Example:

{

Content: [
Array of CatalogItem
]

}


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


See also