title: Access MailChimp API 3.0 (GET)
body: <p>I'm trying to make a GET request through jQuery to the Mailchimp API. It seems though my custom header is not correctly set as I get a <code>Your request did not include an API key.</code> error.</p>
  
  <p>It works fine if I make the request using curl on my Ubuntu machine:</p>
  
  <pre><code>curl --header "Authorization: apikey 709XXXXXXXXXXXXXXXXXXXXXXXXXXXXX-us11" https://us11.api.mailchimp.com/3.0/campaigns
  </code></pre>
  
  <p>Here's my code:</p>
  
  <pre><code>$.ajax({
      type: 'GET',
      url: 'https://us11.api.mailchimp.com/3.0/campaigns',
      crossDomain: true,
      dataType: 'jsonp',
      contentType: "application/json; charset=utf-8",
      headers: {
          'Authorization': 'apikey 709XXXXXXXXXXXXXXXXXXXXXXXXXXXXX-us11'
      }
  }).done(function (response) {
      console.log(response); // verbose
  });
  </code></pre>
  
  <p>I even tried adding this above:</p>
  
  <pre><code>$.ajaxSetup({
      headers: { 'Authorization': 'apikey 709XXXXXXXXXXXXXXXXXXXXXXXXXXXXX-us11' }
  });
  </code></pre>