title: What is "Your Access Token" in Youtube Data API and how to get it?
body: <p>I got some code from youtube data API's try-it editor.</p>
  
  <p>I have some curl code here, I have the API Key, but I don't know what <code>[YOUR ACCESS TOKEN]</code>is. I've been trying for the past two hours to find something, but couldn't get what I wanted. </p>
  
  <p>I had an Oauth 2.0 client ID <code>[742151xxxxxx.app.googleuserconsent.com]</code> in google developers console. </p>
  
  <p>I used it in place of <code>[YOUR ACCESS TOKEN]</code> but still got the authorization error.</p>
  
  <p>Here is the cURL code: </p>
  
  <pre><code>curl \
    'https://www.googleapis.com/youtube/v3/playlistItems?part=id%2C%20snippet&amp;playlistId=pbsF2UOcspaGQkAe1BCAR395sue-tp5r&amp;key=[YOUR_API_KEY]' \
    --header 'Authorization: Bearer [YOUR_ACCESS_TOKEN]' \
    --header 'Accept: application/json' \
    --compressed
  
  </code></pre>
  
  <p>Here is the error JSON: </p>
  
  <pre><code>{
   "error": {
    "errors": [
     {
      "domain": "global",
      "reason": "authError",
      "message": "Invalid Credentials",
      "locationType": "header",
      "location": "Authorization"
     }
    ],
    "code": 401,
    "message": "Invalid Credentials"
   }
  }
  </code></pre>