Simple search for lists
IE9 =>
pure javascript
User case
1.key setting
SimpleYoutube.setKey('Your api key');
2.Get list (max 50 rows)
SimpleYoutube.query('search query', callback function);
ex)
SimpleYoutube.query('pinkpong', function(response) {
// orignal data : response
console.log(response);
// Extract only video codes, titles, and images
console.log(SimpleYoutube.fetchList(response));
});
2.Next 50 list (You must use "promise" or "setTimeout" immediately after simpleYoutube.query)
SimpleYoutube.search.next(function(response) {
console.log(SimpleYoutube.search.fetchList(response));
});