SMAPPNYU / youtube-data-api

A Python Client for collect and parse public data from the Youtube Data API
https://youtube-data-api.readthedocs.io/en/latest/index.html
MIT License
79 stars 31 forks source link

get_subscriptions has wrong order of args in http request #14

Closed yinleon closed 5 years ago

yinleon commented 5 years ago

Describe the bug When the string is formatted for the http request, two arguments are placed in the wrong order. See: https://github.com/SMAPPNYU/youtube-data-api/blob/master/youtube_api/youtube_api.py#L402

Expected behavior Switch the order of these keys Traceback Include code block of the error, along with the version of the software and Python. HTTPError: 400 Client Error: Bad Request for url: https://www.googleapis.com/youtube/v3/subscriptions?channelId=id,snippet&part=UC[...]&maxResults=50&key=AIza[...]

Desktop (please complete the following information): Linux

yinleon commented 5 years ago

This is fixed in V0.15. With the new version you can sanity check the API call by setting verbose=1 to the YouTubeDataAPI class