I am working on a call to the Youtube API. In this code the number of listings to return (maxResults) is set by the user through a form along with the search query. I want to set the maxResults myself and take away that choice from the user. In this piece of code, how can I set the maxResults to "30" instead of the $_GET['maxResults']?
$searchResponse = $youtube->search->listSearch('id,snippet', array(
'q' => $_GET['q'],
'maxResults' => $_GET['maxResults'],
));
Thanks!
$_GET['maxResults']with30..?