Google_SearchServiceResource

The "search" collection of methods.

Defined (1)

The class is defined in the following location(s).

/inc/google-api-php-client/src/contrib/Google_YoutubeService.php  
  1. class Google_SearchServiceResource extends Google_ServiceResource { 
  2.  
  3.  
  4. /** 
  5. * Universal search for youtube. (search.list) 
  6. * @param array $optParams Optional parameters. 
  7. * @opt_param string q Query to search in Youtube. 
  8. * @opt_param string startIndex Index of the first search result to return. 
  9. * @opt_param string type Type of resource to search. 
  10. * @opt_param string order Sort order. 
  11. * @opt_param string maxResults Maximum number of search results to return per page. 
  12. * @return Google_SearchListResponse 
  13. */ 
  14. public function listSearch($optParams = array()) { 
  15. $params = array(); 
  16. $params = array_merge($params, $optParams); 
  17. $data = $this->__call('list', array($params)); 
  18. if ($this->useObjects()) { 
  19. return new Google_SearchListResponse($data); 
  20. } else { 
  21. return $data;