title: $http requests in AngularJS resulting in 400 error
body: <p>My <code>$http</code> request to the YouTube API in AngularJS is resulting in a 400 error. I seem to be placing all the requirements for the API.</p>
  
  <pre><code>angular.module('video-player')
    .service('youTube', function ($http) {
    this.search = (options) =&gt; {
      $http.get('https://www.googleapis.com/youtube/v3/search', {
        part: 'snippet',
        key: myKey,
        maxResults: options.max,
        q: options.query,
        videoEmbeddable: 'true',
        type: 'video'
      }).then(function (response) {
        console.log('success');
      }, function (response) {
        console.log('failed');
      });
    }
  });
  </code></pre>
  
  <p>Options:</p>
  
  <pre><code>var defaultSearch = {
    key: myKey,
    max: 5,
    query: 'kitten'
  };
  
  youTube.search(defaultSearch);
  </code></pre>