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' -

Making Empty C++ Project: General exception (Exception from HRESULT:0x80131500) Visual Studio Community 2015 -

How to fix java warning for "The value of the local variable is not used " -