post_import_newsletter
 
 
Overview
This function creates a new newsletter or edits an existing one
 
Parameters
 
NameTypeRequiredComments
HtmlURLStringYesThe url location of the html newsletter
NewExistingStringYesThis command creates a new newsletter or updates an existing one.
New = Create a new newsletter
Existing = Edit an existing newsletter
NewsletterIDIntegerYes, if existing No, if new The id of an existing newsletter, if importing a new newsletter then it must be left blank
NewsletterNameStringYes, if new No, if existing The name of the new newsletter, if updating an existing newsletter then it must be left blank
ReplaceImagesBooleanNoThis command replaces relative image paths in your newsletter with the HtmlURL path.
“false” = (Default) Keeps image paths as is
“true” = Replaces image paths
ReplaceLinksBooleanNoThis command replaces your relative link paths with the HtmlURL path.
“false” = (Default) Keeps link paths as is
“true” = Replaces link paths
TextURLStringNoThe url location of the text newsletter
Returns
0|Error (Different descriptions for the error).
1|NewsletterID|Newsletter successfully imported. (Where NewsletterID is the id of the newly imported Newsletter.)
1|Newsletter successfully updated. (Existing newsletters)
Example
https://www.graphicmail.com/api.aspx?Username=user@mydomain.com&Password=123456&Function=post_import_newsletter&HtmlURL=www.mydomain.com/Newsletter1.html&NewsletterName=MyNewsletter&NewExisting=New&ReplaceLinks=true