witnessmenow / arduino-youtube-api

A wrapper around the youtube api for arduino
MIT License
143 stars 48 forks source link

Adding video statistics functionality #50

Open Colum31 opened 2 years ago

Colum31 commented 2 years ago

I have added a function to get statistics for a video with it's id. It works very similar to its channel statistics counterpart.

I also added an example sketch and Arduino IDE keywords. I plan to extend the library further.

Regards Daniel

Colum31 commented 2 years ago

I have added more functionality, the library is now able to fetch almost all video.list informations. I have also rewritten the code, to make it more expandable.

The "flow" in the code is as follows:

public get function -> private getRequestedType -> private parsing function

This way, one must only write a parsing function, in order to expand the functionality further. (see commit 154894e) I am sorry for the size of the PR, @witnessmenow .

Regards Daniel