YouTube channel subscribe for Android -


i using youtube api within app. users can log in google+ account. user able subscribe youtube channels.

there seems web here: https://developers.google.com/youtube/subscribe/

but can't find suited android. missing documentation or there workaround?

you don't need specific android library subscribe authenticated user specific channel. send authenticated post request subscriptions/insert endpoint channelid of channel want subscribe part param snippet:

http post https://www.googleapis.com/youtube/v3/subscriptions?part=snippet&key={your_api_key} 

request body:

{     "snippet": {         "resourceid": {             "channelid": "xxxxx" // channel id want subscribe         }     } } 

Comments

Popular posts from this blog

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

python - How do I create a list index that loops through integers in another list -

c# - “System.Security.Cryptography.CryptographicException: Keyset does not exist” when reading private key from remote machine -