Google YouTube Search

$search = eden('google')->youtube($_SESSION['token'], '[DEVELOPER_KEY]')->search();
Figure 1. YouTube Search Methods
Method Arguments Returns Description
$search->setStart($start);
  1. integer
Eden_Google_Youtube_Search Set start index
$search->setRange($range);
  1. integer
Eden_Google_Youtube_Search Set start index
$search->orderByRelevance(); none Eden_Google_Youtube_Search Order results by relevance
$search->orderByPublished(); none Eden_Google_Youtube_Search Order results by published
$search->orderByViewCount(); none Eden_Google_Youtube_Search Order results by viewCount
$search->orderByRating(); none Eden_Google_Youtube_Search Order results by rating
$search->getResponse($queryString);
  1. string
array Returns a collection of videos that match the API request parameters.

© 2012 Openovate Labs. All rights reserved.