Skip to content

Instantly share code, notes, and snippets.

View boomtrain-support's full-sized avatar

Boomtrain Support boomtrain-support

View GitHub Profile
@boomtrain-support
boomtrain-support / get-notifications-id-jquery.html
Created August 31, 2015 16:54
GET /notifications/:id - An example request for this endpoint using jQuery
<script>
// Get the details about a Campaign
function getNotificationId() {
// Send a jQuery AJAX request to get the Campaign details
$.ajax({
url: 'https://api.boomtrain.com/notificaions/{id}',
// Replace your Username, Password, and App Id
headers: {
'x-app-id': '{app_id}',
'Content-Type': 'application/json',
@boomtrain-support
boomtrain-support / get-notifications-id-response.js
Created August 31, 2015 16:53
GET /notifications/:id - Retrieve details about a single Campaign.
{
active: {true or false},
app: "{app_id}",
emailData: {
from: '{The From: Address Information}',
layout: '{A JSON array with the body of the email}',
subject: '{The Subject of the email}'
},
exclude: {
resources: '{A JSON array of resources to exclude from Recommendation Blocks}'