This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl | |
-H 'x-app-id: {app_id}' | |
-X GET | |
'https://api.boomtrain.com/resources' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
0: { | |
id: '{ID of the Recommendable Resource}', | |
model: '{Model Type}', | |
props: { | |
author: '{Author Name}', | |
body: '{Body of the Resource}', | |
description: '{Description of the Resource}', | |
pubDate: '{Date the Resource was Published}', | |
thumbnail: '{URL to the Hosted Image}', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
// Get Recommendations for a specified user | |
function getUserUserIdRecommendations() { | |
// Send a jQuery AJAX request to to retreive the recommendations | |
$.ajax({ | |
url: 'https://api.boomtrain.com/users/{userId}/recommendations?expand=true', | |
// Replace with your App Id | |
headers: {'x-app-id': '{app_id}'}, | |
type: 'GET', | |
success: function(msg) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl | |
-H 'x-app-id: {app_id}' | |
-X GET | |
'https://api.boomtrain.com/users/{userId}/recommendations?expand=true' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
function eventTrack() { | |
// JSON stringify the data | |
var json_data = JSON.stringify({ | |
'type': '{Event Type}', | |
'model': '{Model Type}', | |
'id': '{Resource ID}', | |
'userId': '{User ID}', | |
'timestamp': '{ISO Formatted Timestamp, will be generated if not specified}' | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -u {username}:{password} | |
-H 'x-app-id: {app_id}' | |
-X POST | |
-H 'Content-Type: application-json' | |
-d '{ | |
"type": "{Event Type to Track}", | |
"model": "{Resource Model Type to Track}", | |
"id": "{ID of the Specific Resource to Track}", | |
"app_member_id": "{ID of the User to Track}", | |
"timestamp": "{ISO Formatted Timestamp, will be generated if not specified}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
0: { | |
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: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
// Get a list of Campaigns | |
function getNotifications() { | |
// Send a jQuery AJAX request to get the Campaigns | |
$.ajax({ | |
url: 'https://api.boomtrain.com/notificaions', | |
// Replace your Username, Password, and App Id | |
headers: { | |
'x-app-id': '{app_id}', | |
'Content-Type': 'application/json', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -u {username}:{password} | |
-H 'x-app-id: {app_id}' | |
-X GET | |
'https://api.boomtrain.com/notifications' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.ajax({ | |
url: 'https://api.boomtrain.com/{endpoint}', | |
headers: { | |
'x-app-id': '{app_id}', | |
'Content-Type': 'application/json', | |
'Authentication': 'Basic ' + btoa('{username}:{password}') | |
}, | |
... | |
}) |