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
.addontrain-recommendations, | |
.addontrain-recommendations * { | |
-webkit-box-sizing: border-box; | |
-moz-box-sizing: border-box; | |
box-sizing: border-box; | |
} | |
.addontrain-recommendation { | |
display: block; | |
margin-bottom: 20px; |
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
<div class="addontrain-recommendations"> | |
<% for (var i = 0; i < recommendations.length; i++) { %> | |
<a class="addontrain-recommendation" href="<%= recommendations[i].props.url %>"> | |
<div class="image-column"> | |
<img src="<%= recommendations[i].props.thumbnail %>" /> | |
</div><div class="text-column"> | |
<h4><%= recommendations[i].props.title %></h4> | |
</div> | |
</a> | |
<% }; %> |
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> | |
// Unsubscribe a User by email address | |
function postUnsubscribe() { | |
// JSON stringify the email address | |
var json_email = JSON.stringify({ | |
email: emailAddr | |
}); | |
// Send a jQuery AJAX request to unsubscribe the email address. | |
$.ajax({ |
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 '{"email": "{User's Email Address}"}' | |
'https://api.boomtrain.com/unsubscribe' |
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> | |
// Update an existing User | |
function putPersonUpdate() { | |
// JSON stringify the User data | |
var json_user = JSON.stringify({ | |
"bsin":"{Existing User's BSIN}", | |
"email":"{OR Existing User's Email Address}", | |
"app_member_id":"{OR Your Unique ID for the User}", | |
"firstName":"{First Name}", | |
"lastName":"{Last Name}", |
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> | |
// Create a new User | |
function putPersonCreate() { | |
// JSON stringify the User data | |
var json_user = JSON.stringify({ | |
"bsin":"{Leave blank to create a new BSIN}", | |
"email":"{email}", | |
"app_member_id":"{Your Unique ID for the User}", | |
"firstName":"{First Name}", | |
"lastName":"{Last Name}", |
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 'user:password' | |
-H 'x-app-id: abc123' | |
-X PUT | |
-H 'Content-Type: application/json' | |
-d '{ | |
"bsin":"{Existing User's BSIN}", | |
"email":"{OR Existing User's Email}", | |
"app_member_id":"{OR Your Unique ID for the Existing User}", | |
"firstName":"{First Name}", | |
"lastName":"{Last Name}", |
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 'user:password' | |
-H 'x-app-id: abc123' | |
-X PUT | |
-H 'Content-Type: application/json' | |
-d '{ | |
"bsin":"{Leave blank to create a new BSIN}", | |
"email":"{email}", | |
"app_member_id":"{Your Unique ID for the User}", | |
"firstName":"{First Name}", | |
"lastName":"{Last Name}", |
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
{ | |
"bsin":"{bsin}", | |
"appId":"{app_id}", | |
"appMemberId":"{Your Unique ID for the User}", | |
"email":"{email}", | |
"secondaryEmail":null, | |
"firstName":"{User's First Name}", | |
"lastName":"{User's Last Name}", | |
"age":0, | |
"gender":null, |
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> | |
// Retrieve a User by bsin | |
function getPersonBSIN() { | |
// Send a jQuery AJAX request to retrieve the User | |
$.ajax({ | |
url: 'https://api.boomtrain.com/person?bsin={bsin}', | |
// Replace with your Username, Password, and App Id | |
headers: { | |
'x-app-id': '{app_id}', | |
'Content-Type': 'application/json', |
NewerOlder