Hi I'm trying to get the Search part of the Youtube Data API to work but not having much luck.
I completely copied the code from Youtube's GitHub page whilst following their tutorial
YT Github Page
The problem seems to be with this function;
function search() {
var q = $('#query').val();
var request = gapi.client.youtube.search.list({
q: q,
part: 'snippet'
});
request.execute(function(response) {
var str = JSON.stringify(response.result);
$('#search-container').html('<pre>' + str + '</pre>');
});
}
Here's the test site
Any help would be much appreciated
Thanks ;)