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
Post a Comment