title: Why am i getting an unauthorized message when I use youtube api
body: <p>I'm trying to get a list of playlists to display and have my ajax call set up like:</p>
  
  <pre><code>function loadData(){
  
  
      if(GoogleAuth.currentUser.get().hasGrantedScopes(SCOPE)){
          $.ajax({
              url:'https://www.googleapis.com/youtube/v3/playlists',
              data:{
                  'key':'AIzaSyD0OY6xhl9gP9CmPXvU-rN-purRDaTrip8',
                  'mine':'true',
                  'maxResults':'5',
                  'part':'snippet,contentDetails'
              },
              sucess:function(data){
                  console.log(data);
              },
              error:function(data){
                  console.log(data.responseText);
              }
          });
      }
  
  
  
  }
  </code></pre>
  
  <p>This code runs only after the page has fully loaded and the user has been given the choice to log in. If they do log in a list of playlists should build. I have enabled my api key, made sure my origin is whitelisted, and everything else I can think of. 
  however I keep getting this response:</p>
  
  <pre><code> "error": {
    "errors": [
     {
      "domain": "youtube.parameter",
      "reason": "authorizationRequired",
      "message": "The request uses the \u003ccode\u003emine\u003c/code\u003e parameter but is not properly authorized.",
      "locationType": "parameter",
      "location": "mine"
     }
    ],
    "code": 401,
    "message": "The request uses the \u003ccode\u003emine\u003c/code\u003e parameter but is not properly authorized."
   }
  </code></pre>
  
  <p>I have made sure to wrap the ajax call to ensure that the user is already logged in. So I'm not sure why I am getting this error message. I'm still getting the hang of api calls so please let me know if I forgot to add something to it. From what I can tell from google docs this should be all I need. </p>