I am using the YouTube API within my app. Users can log in with their Google+ account. I would like the user to be able to subscribe to certain YouTube channels.
There seems to be something for web here: https://developers.google.com/youtube/subscribe/
But I can't find something suited to Android. Am I missing something from the documentation or is there a workaround?
You don't need a specific Android library to subscribe an authenticated user to a specific channel. Just send an authenticated POST request to the
subscriptions/insert
endpoint with thechannelId
of the channel you want to subscribe to with thePart
paramsnippet
:Request body:
I found we can subcription with request body as:
source: https://mshibanami.github.io/en/blog/subscriptions-insert-error/