php-youtube-api
php-youtube-api copied to clipboard
getVideoInfo with params and Youtube quotas calculator
Hi My first move was to add optionnal params to getVideoInfo and create one tests to go with. My second move was to add Youtube quota calculation. The goal of this is to calculate the quota used on each api request made dynamically.
A class YoutubeQuotas has been made for it. And I inject a YoutubeQuotas instance in your Youtube class. If this object is set I'm calculating the quota used by the query.
If you have any question, please tell me :) Thanks you for making this lib (I'm using it everyday) and for reading this :) Cheers
excellent additions @tyteck ! I've copied your improvements to my fork
@madcoda would be great if you could add these changes as well
@tyteck could you possibly add a short code snippet example of how to best make use of this new quota functionality you've baked in?
Thanks!