title: Magento: programmatically subscribe user to mailchimp list using mailchimp module
body: <p>I have a magento 1.9.1.0 site with MailChimp 1.1.10 installed.</p>
  
  <p>I've already configured the MailChimp module and selected the list I want new subscribers to go into.</p>
  
  <p>What I now want to do is to add customers who placed a successful order to a different mailing list in MailChimp only (so they should not be added as subscribers to magento newsletter). And I'd like to do this using all of the methods provided by the MailChimp module that's installed.</p>
  
  <p>So far I've created a custom module with an observer method that is fired on the<code>checkout_onepage_controller_success_action</code> event.</p>
  
  <p>From here I am not sure what exactly to place in the method. But the basic idea is as follow:</p>
  
  <pre><code>public function syncCustomerOnSuccess($observer) {
      $customer = $observer-&gt;getCustomer();
  
      // Get customer details (fname, lname, email)
      // Make sure customer does not exist in mailchimp mailing list
      // Add customer to mailing list
  }
  </code></pre>
  
  <p>If someone could please point me in the right direction.</p>