def new_email_marketing_campaign(self, name, email_content, from_email,<EOL>from_name, reply_to_email, subject,<EOL>text_content, address,<EOL>is_view_as_webpage_enabled=False,<EOL>view_as_web_page_link_text='<STR_LIT>',<EOL>view_as_web_page_text='<STR_LIT>',<EOL>is_permission_reminder_enabled=False,<EOL>permission_reminder_text='<STR_LIT>'):
url = self.api.join(self.EMAIL_MARKETING_CAMPAIGN_URL)<EOL>inlined_email_content = self.inline_css(email_content)<EOL>minified_email_content = html_minify(inlined_email_content)<EOL>worked_around_email_content = work_around(minified_email_content)<EOL>data = {<EOL>'<STR_LIT:name>': name,<EOL>'<STR_LIT>': subject,<EOL>'<STR_LIT>': from_name,<EOL>'<STR_LIT>': from_email,<EOL>'<STR_LIT>': reply_to_email,<EOL>'<STR_LIT>': worked_around_email_content,<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': text_content,<EOL>'<STR_LIT>': {<EOL>'<STR_LIT>': address['<STR_LIT>'],<EOL>'<STR_LIT>': address['<STR_LIT>'],<EOL>'<STR_LIT>': address['<STR_LIT>'],<EOL>'<STR_LIT>': address['<STR_LIT>'],<EOL>'<STR_LIT>': address['<STR_LIT>'],<EOL>'<STR_LIT:state>': address['<STR_LIT:state>'],<EOL>'<STR_LIT>': address['<STR_LIT>'],<EOL>'<STR_LIT>': address['<STR_LIT>'],<EOL>'<STR_LIT>': address['<STR_LIT>']<EOL>},<EOL>'<STR_LIT>': is_view_as_webpage_enabled,<EOL>'<STR_LIT>': view_as_web_page_link_text,<EOL>'<STR_LIT>': view_as_web_page_text,<EOL>'<STR_LIT>': is_permission_reminder_enabled,<EOL>'<STR_LIT>': permission_reminder_text<EOL>}<EOL>response = url.post(data=json.dumps(data),<EOL>headers={'<STR_LIT>': '<STR_LIT:application/json>'})<EOL>self.handle_response_status(response)<EOL>return EmailMarketingCampaign.objects.create(data=response.json())<EOL>
Create a Constant Contact email marketing campaign.
        Returns an EmailMarketingCampaign object.