Published — v. 15
WS_MailUpSend.GetNewsletterCode
Returns the HTML code of a specific message by specifying the IDs of either the message or the MailUp list that contains it
Method parameters
- string GetNewsletterCode (string accessKey, int listID, int newsletterID, bool usingTemplate)
- accessKey: access key obtained using the LoginFromId method
- listId: list identifier
- newsletterID: ID of the message returned by the WS_MailUpSend.CreateNewsletter
- usingTemplate: always set to "false"
KNOWN RESTRICTION
Characters & and " are not escaped in returned response, so please avoid these characters in message subjects otherwise you will experience some problems due to an invalid returned XML
Code Examples
Ruby
# Refer to https://mailup.atlassian.net/wiki/display/mailupapi/MailUp+RubyGem for gem information. require 'mailup' m = MailUp::Send.new('username', 'password') m.get_newsletter_code(:listId => 1, :newsletterID => 3, :usingTemplate => false) # => <GetNewsletterCodeResult><errorCode>0</errorCode><errorDescription></errorDescription>...</GetNewsletterCodeResult>"