python-youtube icon indicating copy to clipboard operation
python-youtube copied to clipboard

API refactor with child class

Open MerleLiuKun opened this issue 3 years ago • 2 comments

I want to refact the api structure use the child class model. Just like follows

from pyyoutube import Api

api = Api()

api.channel.get(id='xxxxx')
api.video.get(id='xxxx')

I think this can let the api more easliy to understand. And can let the code to simpify.

And can support more api from youtube.

And I will keep the version 0.8.x to use now structure for backward compatibility.

MerleLiuKun avatar Apr 15 '22 07:04 MerleLiuKun

Cover #112

MerleLiuKun avatar Apr 15 '22 07:04 MerleLiuKun

Cover #70

MerleLiuKun avatar Apr 15 '22 07:04 MerleLiuKun