title: MailChimp API java integration
body: <p>I try integrate mailChimp API with java code. I refer <a href="http://docs.codenvy.com/user/tutorials/mailchimp-api-tutorial-3/#create-indexjsp-file-3" rel="nofollow">MailChimp api tutorial at Codenvy.com</a>
  But in function :</p>
  
  <pre><code>public String execute() throws Exception{
  
      ListsMethod listsMethod = new ListsMethod();
      listsMethod.apikey = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-us7";
      ListsResult listsResult = mailChimpClient.execute(listsMethod);
      ListInformation data = listsResult.data.get(0);
  
      CampaignCreateMethod campaignCreateMethod = new CampaignCreateMethod();
      campaignCreateMethod.apikey = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-us7";
      campaignCreateMethod.type = CampaignType.plaintext;
      campaignCreateMethod.options = new Options(data.id, "Test Campaign", "abc@xyz.com", "Codenvy", "Codenvy Users");
      campaignCreateMethod.content = new Content("This is a test campaign");
      String campaignId = mailChimpClient.execute(campaignCreateMethod);
  
      CampaignSendNowMethod campaignSendNowMethod = new CampaignSendNowMethod();
      campaignSendNowMethod.apikey = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-us7";
      campaignSendNowMethod.cid = campaignId;
      mailChimpClient.execute(campaignSendNowMethod);
  
      setMessage("You have successfully created a campaign and sent it to recipients.");
      return "SUCCESS";
  }
  </code></pre>
  
  <p>Error at <code>campaignCreateMethod.options</code> and <code>campaignCreateMethod.content</code>. How can i fix it and how to get all <code>campaignId</code> in my account at mailchimp.com ?
  <a href="https://github.com/Ecwid/ecwid-mailchimp/wiki/Wrapped-MailChimp-API-methods" rel="nofollow">Reference : Wrapped MailChimp API methods </a></p>