I am trying to get the logged in user channel view through googles' oauth2. I am able to get names and emails via this url: https://www.googleapis.com/oauth2/v1/userinfo?alt=json&access_token= [Generated token]
Now, I'm having trouble finding any information about how to get the user's channel views. I know that you can get a list of videos and in this way, how can I do this?
Am I equal to the above link? :)
You can get
https: // Www.googleapis.com/youtube/v3/channels?part=contentDetails&mine=true&key={YOUR_API_KEY} will be the playlist ID of the video viewing in response. You can repeat that playlist again
get https://www.googleapis.com/youtube/v3/playlistItems?part=snippet%2C+contentDetails&id={PLAYLIST_ID } & Amp; key = {YOUR_API_KEY}
No comments:
Post a Comment