jaydp17 / youtube-playlist-sorter

Sorts ↕️ a public playlist based on its popularity 🔥
MIT License
4 stars 7 forks source link

Make consuming this package easier? #12

Open jaydp17 opened 7 years ago

jaydp17 commented 7 years ago

Currently, the usage involves getting an API_KEY from Google, which could be too much hassle for a lot of people.

Any alternate way to make it simpler?

Some of the things I've in mind

Your suggestions welcome ... 🙂

daveseco7 commented 7 years ago

hi, Google's API_KEY is required for API access and is subject to quotas. So if you make it public, another person can use it and mess up your service quota. So you should keep it secret.

If I understand correctly, your project consists in client-side code making calls to Google's API. So the best choice is to provide OAuth 2.0 auth. relevant link

jaydp17 commented 7 years ago

Hey @daveseco7, thanks for the interest!

It does make sense to use OAuth. I'd really appreciate if you can send in a PR implementing it