Skip to content

Instantly share code, notes, and snippets.

View eliotharper's full-sized avatar

Eliot Harper eliotharper

View GitHub Profile
<script type="text/javascript">
alert("Hello world");
</script>
HOST: https://www.exacttargetapis.com
PATCH /contacts/v1/contacts
Authorization: Bearer {{accessToken}}
Content-Type: application/json
{
"contactKey":"1C7634EACB83EEACFC16889D8BCB957BA1001",
"contactId":null,
"attributeSets":[
{
{
"items": [
{
"adapterID": 6011,
"adapterKey": "ContactDeleteProcessor.ContactBuilder.Roots",
"applicationID": "e3640f97-1328-48ed-b3d5-03ca7c0d2e12",
"options": [
{
"iD": "5523009a-4174-4dd8-8ba6-c6df7c28a39b",
"key": "Contacts",
@eliotharper
eliotharper / thankyou.html
Created April 1, 2017 23:04
retrieves form parameters and inserts into Data Extension
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<style type="text/css">
body {
margin: 50px;
color: #555;
font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Verdana, sans-serif;
}
</style>
POST https://pub.s7.exacttarget.com/f42z3hbhqzz
Content-Type: application/x-www-form-urlencoded
ContactKey=a0d1a000000tAEbAAM&orderNumber=100007394&orderStatus=pending
@eliotharper
eliotharper / request.xml
Created February 13, 2017 21:52
Triggered Send to multiple subscribers
<?xml version="1.0" encoding="UTF-8"?>
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<s:Header>
<a:Action s:mustUnderstand="1">Create</a:Action>
<a:MessageID>urn:uuid:7e0cca04-57bd-4481-864c-6ea8039d2ea0</a:MessageID>
<a:ReplyTo>
<a:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address>
</a:ReplyTo>
<a:To s:mustUnderstand="1">https://webservice.s7.exacttarget.com/Service.asmx</a:To>
<fueloauth xmlns="http://exacttarget.com">{{accessToken}}</fueloauth>
  • CloudPages_DataExtension
  • IGO_PRODUCTATTRIBS
  • IGO_PRODUCTS
  • IGO_PROFILES
  • IGO_PURCHASES
  • IGO_VIEWS
  • PI_ABANDONED_CART_EVENT
  • PI_ABANDONED_CART_ITEMS
  • PI_CONTENT
  • PI_CONTENTATTRIBS
%%[
var @subscriberEmail, @dataSourceEmail, @abort
set @dataSourceEmail = AttributeValue('Email')
set @subscriberEmail = emailaddr
if @dataSourceEmail != @subscriberEmail then
set @abort = true
else
set @abort = false
{
"subjectLines":[
{
"date":"08/10/2016",
"subject":"this is my Wednesday subject"
},
{
"date":"08/11/2016",
"subject":"this is my Thursday subject"
},