title: JQuery Remote API With HTTP Basic Authentication Header
body: <p>We are tying to make a connection to the MYEMMA API which must include an HTTP Basic authentication header containing the public &amp; private API keys for our account.</p>
  
  <p>How do we include this information in our JQuery API call? Here is what we have so far:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
    $(document).ready(function() {
      url:  "https://api.e2ma.net/123/members/add",
      dataType: 'json',
      type: "POST"
       {
         "fields": {
         "first_name": "Benjamin"
       },
       "email": "benjamin@myemma.com"
      }
    });
  &lt;/script&gt;
  </code></pre>
  
  <p>We just need to know how to create the authentication header, including our keys, to include in the call.</p>
  
  <p>For reference: <a href="http://myemma.com/api-docs/" rel="nofollow">http://myemma.com/api-docs/</a></p>