Skip to content

Commit

Permalink
adds common properties transmission stored template send example
Browse files Browse the repository at this point in the history
  • Loading branch information
colestrode committed Mar 14, 2016
1 parent 3df1f6c commit d8e834f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions examples/transmissions/stored_template_send.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ var key = 'YOURAPIKEY'

var reqOpts = {
transmissionBody: {
recipients: [{ address: { email: '[email protected]' } }],
campaignId: 'ricks-campaign',
content: {
template_id: 'my-template'
}
template_id: 'ricks-template'
},
'num_rcpt_errors': 3,
recipients: [{ address: { email: '[email protected]', name: 'Rick Sanchez' } }]
}
};

Expand All @@ -18,6 +20,6 @@ client.transmissions.send(reqOpts, function(err, res) {
console.log(err);
} else {
console.log(res.body);
console.log('Congrats you can use our SDK!');
console.log('What up my glib globs! SparkPost!');
}
});

0 comments on commit d8e834f

Please sign in to comment.