Skip to content

Instantly share code, notes, and snippets.

I don't get it.

Kelly Andrews kellyjandrews

I don't get it.
Block or report user

Report or block kellyjandrews

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@kellyjandrews
kellyjandrews / .bashrc
Last active Sep 26, 2016
Useful Bash Scripts
View .bashrc
export NVM_DIR="/Users/kellyandrews/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
# Basic Aliases
alias rs='source ~/.bashrc'
alias atom='open -a Atom'
alias apps='cd ./apps'
#file specific
@kellyjandrews
kellyjandrews / 01MessageDefinitionSends.md
Last active Aug 29, 2015
Message Definition Send Examples
View 01MessageDefinitionSends.md

In order to add the content directly as HTML - make sure the data extension contains "html_content" as a field. Set it to text, and leave the length blank.

Once you have that, then you can pass in the email file with very minimal content, or you can build out a full template based on each of your email types. Also note that you can split these up quite a bit - so your template can have much of the framework, and you can pass in a series of parameters in the REST payload that pull in specific content areas, so you don't have to code out your entire message. Multiple ways to approach this.

It all mostly depends on your data, how much you want to store, and how streamlined you want your process. Another item - I'm using email address as the subscriber key - but this can be any unique identifier.

View jbcall.js
POST: https://www.exacttargetapis.com/interaction-experimental/v1/events
Content-Type: application/json
Authorization Bearer <<token>>
{
"ContactKey" : "XXXXXXXXX",
"EventDefinitionKey" : "CONTACT-EVENT-XXXXXXXXX",
"Data" : {
View 01_sample-email.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width"/>
<style>
#outlook a {
padding:0;
}
@kellyjandrews
kellyjandrews / 01-Request Token
Last active Aug 29, 2015
Hands On Training - Fuel API
View 01-Request Token
POST https://auth.exacttargetapis.com/v1/requestToken
Content-Type application/json
{
"clientId": "xxxxxxxxxxxxxxx",
"clientSecret": "xxxxxxxxxxxxxxx"
}
@kellyjandrews
kellyjandrews / GTL-Sample
Last active Aug 29, 2015
Guide Sample Scripts
View GTL-Sample
%%{={{ }}=}%%
<html>
<head>
<style>
body {font-family: "Helvetica"}
h1,h2,h3,h4,h5,h6,p{padding: 0; margin:0;}
.header {padding-top:12px;}
</style>
</head>
<body>
@kellyjandrews
kellyjandrews / singleDataPoint
Created Apr 17, 2014
Dynamic Content Samples
View singleDataPoint
%%[
var @rows,@row,@key,@percent,@contentPath
set @key = _subscriberkey
set @rows = LookupRows("Common_Subscriber_View","SubscriberKey",@key)
if RowCount(@rows) == 1 then
set @row = Row(@rows,1)
set @percent = Field(@row,"Percentage_Complete")
else
View gist:8857288
error: Compiling of 'vendor/node/lib/node_modules/npm/cli.js' failed. Line 1: Unexpected token ILLEGAL ; Compiling of 'vendor/node/lib/node_modules/npm/bin/npm-cli.js' failed. Line 1: Unexpected token ILLEGAL ; Compiling of 'vendor/node/lib/node_modules/npm/scripts/index-build.js' failed. Line 1: Unexpected token ILLEGAL
07 Feb 04:10:25 - error: Compiling of 'vendor/node/lib/node_modules/npm/cli.js' failed. Line 1: Unexpected token ILLEGAL ; Compiling of 'vendor/node/lib/node_modules/npm/bin/npm-cli.js' failed. Line 1: Unexpected token ILLEGAL ; Compiling of 'vendor/node/lib/node_modules/npm/scripts/index-build.js' failed. Line 1: Unexpected token ILLEGAL ; Compiling of 'vendor/node/lib/node_modules/npm/node_modules/child-process-close/index.js' failed. Line 9: Illegal return statement,Line 13: Illegal return statement ; Compiling of 'vendor/node/lib/node_modules/npm/node_modules/opener/opener.js' failed. Line 1: Unexpected token ILLEGAL ; Compiling of 'vendor/node/lib/node_modules/npm/node_modules/rim
You can’t perform that action at this time.