For more information on using API

GET https://webapi.mymarketing.co.il/api/campaigns/{id}/design

Get campaign design

Request Information

URI Parameters

Name

Description

Type

Additional information

id

Campaign id.Can be found using the endpoint "Get account's email campaigns..." or in the UI(go to Emails->Emails Lists->click on the campaign's preview -> you'll find the id int the URL)

integer

Required

Body Parameters

None.

Response Information

Resource Description

ApiCampaignDesign

Name

Description

Type

Additional information

content

Campaign content. Can be a simple text or HTML. Required only if you create a new A/B testing (email campaign - version A). If you don't - only required if you don't use the "template" parameter.

string
language_type

Set your campaign language type - using "UTF-8" is recommended

header_footer_language_type

Set your campaign language type - using "UTF-8" is recommended

is_add_print_email

Add a 'print email' button

boolean
is_auto_css_inliner

An option to set the CSS inline in the HTML content

boolean

Response Formats

application/json, text/json

Sample:
{
  "content": "sample string 1",
  "language_type": "IBM_EBCDIC_US_Canada",
  "header_footer_language_type": "IBM_EBCDIC_US_Canada",
  "is_add_print_email": true,
  "is_auto_css_inliner": true,
  "is_remove_system_links": false
}

application/xml, text/xml

Sample:
<ApiCampaignDesign xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ActiveTrail.RESTfulApi.Models">
  <content>sample string 1</content>
  <header_footer_language_type>IBM_EBCDIC_US_Canada</header_footer_language_type>
  <is_add_print_email>true</is_add_print_email>
  <is_auto_css_inliner>true</is_auto_css_inliner>
  <is_remove_system_links>false</is_remove_system_links>
  <language_type>IBM_EBCDIC_US_Canada</language_type>
</ApiCampaignDesign>