Skip to content

Instantly share code, notes, and snippets.

@mc-doc
mc-doc / stackkey_messagesettings_block.html
Created July 16, 2020 21:15
Stack Key for Message Settings Block
https://distributed-marketing-content-blocks.{{stackKey}}.marketingcloudapps.com/message-settings-block/v1/
@mc-doc
mc-doc / stackkey_richtext_block.html
Created July 16, 2020 21:14
Stack Key for Rich Text
https://distributed-marketing-content-blocks.{{stackKey}}.marketingcloudapps.com/rich-text-block/v1/
@mc-doc
mc-doc / stackkey_freetext_block.html
Created July 16, 2020 21:12
Stack Key for Text Block
https://distributed-marketing-content-blocks.{{stackKey}}.marketingcloudapps.com/free-text-block/v1/
@mc-doc
mc-doc / stackkey_image_block.html
Created July 16, 2020 21:11
Stack Key for Image Block
https://distributed-marketing-content-blocks.{{stackKey}}.marketingcloudapps.com/image-block/v1/
@mc-doc
mc-doc / asset-model-complex-template.json
Created April 30, 2020 15:48
Complex Template Based Email Example on asset_model_examples.htm
{
"id": 108495,
"customerKey": "090c69e7-59ac-4286-8733-f8f7613ab470",
"objectID": "1cd57450-3f4a-46a8-9177-068f031ff56f",
"contentType": "application/vnd.etmc.email.Message; kind=template",
"assetType": {
"id": 207,
"name": "templatebasedemail",
"displayName": "Template-Based Email"
},
@mc-doc
mc-doc / asset-model-simple-template.json
Created April 30, 2020 15:21
Simple Template Based Email Example on asset_model_examples.htm
{
"assetType": {
"id": 207
},
"name": "NTO Welcome Series Email",
"views": {
"subjectline": {
"content": "Welcome %%First_Name%% to Northern Trail Outfitters"
},
"preheader": {},
@mc-doc
mc-doc / retrieve-email-folder-heirarchy.xml
Created April 25, 2018 20:29
soap sample on retrieving_the_email_folder_hierarchy.htm
<soap:Body>
<RetrieveRequestMsg xmlns="http://exacttarget.com/wsdl/partnerAPI">
<RetrieveRequest>
<ObjectType>DataFolder</ObjectType>
<Properties>Client.ID</Properties>
<Properties>Name</Properties>
<Properties>ID</Properties>
<Properties>ObjectID</Properties>
<Properties>ContentType</Properties>
<!--Parent Details-->
@mc-doc
mc-doc / retrieve-email-folder-heirarchy2.php
Created April 25, 2018 20:28
php sample on retrieving_the_email_folder_hierarchy.htm
$cid = new Marketing Cloud_ClientID();
$cid->ID = 123456; // This is the ID of the specific business unit
$rr->ClientIDs = array($cid);
@mc-doc
mc-doc / retrieve-email-folder-heirarchy.php
Created April 25, 2018 20:27
php sample on retrieving_the_email_folder_hierarchy.htm
<?php
echo '<pre>';
$path = $_SERVER[DOCUMENT_ROOT].'/00 Includes/';
require($path . 'exacttarget_soap_client.php');
$wsdl = 'https://webservice.exacttarget.com/etframework.wsdl';
try{
/* Create the Soap Client */
$client = new Marketing CloudSoapClient($wsdl, array('trace'=>1));
/* Set username and password here */
$client->username = XXXXX;
@mc-doc
mc-doc / retrieve-email-folder-heirarchy.net
Created April 25, 2018 20:25
.net sample on retrieving_the_email_folder_hierarchy.htm
private void RetrieveDataFolder()
{
SoapClient framework = new SoapClient();
framework.ClientCredentials.UserName.UserName = "xxx";
framework.ClientCredentials.UserName.Password = "xxx";
String requestID;
String status;
APIObject[] results;
SimpleFilterPart sfp = new SimpleFilterPart();
sfp.Property = "ContentType";