title: How to send email using MailChimp API
body: <p>I'm creating an app in nodejs to send an email using MailChimp. I've tried to use <a href="https://apidocs.mailchimp.com/sts/1.0/sendemail.func.php" rel="nofollow">https://apidocs.mailchimp.com/sts/1.0/sendemail.func.php</a> but changed it to use 3.0 api because 1.0 seems to no longer work (big surprise). I've setup my app with</p>
  
  <pre><code>var apiKey = '&lt;&lt;apiKey&gt;&gt;',
          toEmail = '&lt;&lt;emailAddress&gt;&gt;',
          toNames = '&lt;&lt;myName&gt;&gt;',
          message = {
              'html': 'Yo, this is the &lt;b&gt;html&lt;/b&gt; portion',
              'text': 'Yo, this is the *text* portion',
              'subject': 'This is the subject',
              'from_name': 'Me!',
              'from_email': '',
              'to_email': toEmail,
              'to_name': toNames
          },
          tags = ['HelloWorld'],
          params = {
              'apikey': apiKey,
              'message': message,
              'track_opens': true,
              'track_clicks': false,
              'tags': tags
          },
          url = 'https://us13.api.mailchimp.com/3.0/SendEmail';
  needle.post(url, params, function(err, headers) {
      if (err) {
                  console.error(err);
              }
              console.log(headers);
      }
  });
  </code></pre>
  
  <p>I keep getting a 401 response (not authorized because I'm not sending the API key properly)</p>
  
  <p>I have to use needle due to the constraints on the server.</p>