Skip to content

Instantly share code, notes, and snippets.

View eliotharper's full-sized avatar

Eliot Harper eliotharper

View GitHub Profile
@eliotharper
eliotharper / interactions
Created January 12, 2015 20:52
retrieve all Interaction methods from Service Discovery Document
HOST: https://www.exacttargetapis.com
GET https://www.exacttargetapis.com/interaction/v1/interactions/rest
Content-Type: application/json
Authorization: Bearer [insert-accessToken-here]
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<soap:Header>
<wsa:Action>RetrieveResponse</wsa:Action>
@eliotharper
eliotharper / gist:b45f1257bf73537cc8ee
Created February 9, 2015 16:40
traceevents search response
{
"took":6,
"timed_out":false,
"_shards":{
"total":32,
"successful":32,
"failed":0
},
"hits":{
"total":6,
@eliotharper
eliotharper / gist:2def7fbe16a296c0bdfc
Created February 10, 2015 19:42
Interaction not Activating
{
"id": "09124684-75af-4ea3-8fc3-a3ef86169dfa",
"key": "019a05b8-c581-2500-1c56-bb22bc6751bd",
"name": "Sausage Update",
"lastPublishedDate": "0001-01-01T00:00:00",
"description": "",
"version": 1,
"workflowApiVersion": 1,
"createdDate": "2015-02-10T13:33:31.453",
"modifiedDate": "2015-02-10T13:39:19.78",
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>GTL Test
</title>
</head>
<body>
%%[
var @reservationData,
{
"subjectLines":[
{
"date":"08/10/2016",
"subject":"this is my Wednesday subject"
},
{
"date":"08/11/2016",
"subject":"this is my Thursday subject"
},
%%[
var @subscriberEmail, @dataSourceEmail, @abort
set @dataSourceEmail = AttributeValue('Email')
set @subscriberEmail = emailaddr
if @dataSourceEmail != @subscriberEmail then
set @abort = true
else
set @abort = false
  • CloudPages_DataExtension
  • IGO_PRODUCTATTRIBS
  • IGO_PRODUCTS
  • IGO_PROFILES
  • IGO_PURCHASES
  • IGO_VIEWS
  • PI_ABANDONED_CART_EVENT
  • PI_ABANDONED_CART_ITEMS
  • PI_CONTENT
  • PI_CONTENTATTRIBS
POST https://pub.s7.exacttarget.com/f42z3hbhqzz
Content-Type: application/x-www-form-urlencoded
ContactKey=a0d1a000000tAEbAAM&orderNumber=100007394&orderStatus=pending
@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>