sorry before, maybe this is a stupid question.
I tried to make an application using Google Oauth2 using the steps from the tutorial: https://medium.com/@pablo127/google-api-authentication-with-oauth-2-on-the-example-of-gmail-a103c897fd98
Currently I have succeeded until I get access_token and refresh_token as below:
{
"access_token": "*****",
"expires_in": 3600,
"refresh_token": "*****",
"scope": "https://www.googleapis.com/auth/youtube",
"token_type": "Bearer"
}
What I want to ask is, how to use the data on YoutubeAPI: https://developers.google.com/youtube/v3/docs/subscriptions/insert
Q1: So that I can subscribe or unsubscribe to certain channels through my application.
Q2: Also, how can I use "refresh_token" to get the next "access_token".
Thank you in advance.