Hi everyone,
I have also same problem. I am trying to implement mailchip api in my python django application. But I can post my content into content section. I will mentioned my problem below,
#views.py
from mailsnake import MailSnake
from mailsnake.exceptions import *
def mailchimp(request):
mailsnake = MailSnake('API-KEY')
template_option = {'list_id':list_id,
'subject':'Test subject',
'
from_email':'EXA...@EXAMPLE.COM',
'from_name':'Michel',
'to_name':'',
'inline_css':True,
'template_id':12345,
'generate_text': True,
'title':'Test title',
'authenticate': True,
'auto_footer': True
}
template_content = {'html_std_preheader_content': "HEADER CONTENT ",'html_std_preheader_links':"PREHEADER LINK",'html_postcard_heading00':"NEWS LETTER",'html_postcard_image': "IMAGE",'html_std_footer': "FOOTER TEXT",'html_std_content00': "NEWS LETTER CONTENT"}
campaign_create = mailsnake.campaignCreate(type='regular',options = template_option,content=template_content)
I have written above code in my python django application. But can not replace the above content into created campaign.
The data will be added into the sections like "std_preheader_content", "std_preheader_links,"std_social",and "std_footer". Anything will be added into the above section image or text thats added properly. Problem with the sections like "postcard_heading00", "std_content00" and "postcard_image" section. Is there any problem with the repeatable section?
So please help me to solve this problem. Is I am wrong in coding or any settings?
Thanks in advance,
Samdas