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