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 email | |
function getPersonEmail() { | |
// Send a jQuery AJAX request to retrieve the User | |
$.ajax({ | |
url: 'https://api.boomtrain.com/person?email={email}', | |
// Replace with 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}' | |
'https://api.boomtrain.com/person?bsin={bsin}' |
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}' | |
'https://api.boomtrain.com/person?email={email}' |
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> | |
// Delete a resource for the model by ID | |
function deleteResourcesModelId() { | |
// Send a jQuery AJAX request to delete the resource | |
$.ajax({ | |
url: 'https://api.boomtrain.com/resources/{model}/{id}', | |
// Replace with 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
<script> | |
// Delete a resource for the model by ID | |
function deleteResourcesModelId() { | |
// Send a jQuery AJAX request to delete the resource | |
$.ajax({ | |
url: 'https://api.boomtrain.com/resources/{model}/{id}', | |
// Replace with 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 DELETE | |
'https://api.boomtrain.com/resources/{model}/{id}' |
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
{ | |
id: "{Resource ID}", | |
model: "{Model Type}", | |
props: { | |
url: "{The Canonical URL}", | |
thumbnail: "{URL to the Hosted Image File}", | |
title: "{Title of the Resource}", | |
... | |
}, | |
updatedAt: "{ISO Formatted Timestamp}" |
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 resource for the model by id | |
function putResourcesModelId() { | |
// JSON stringify the resource data | |
var json_model = JSON.stringify({ | |
'props': { | |
'title': '{Your New Title}', | |
'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
curl -u {username}:{password} | |
-H 'x-app-id: {app_id}' | |
-X PUT | |
-H 'Content-Type: application-json' | |
-d '{ | |
"title": "{The Title of the Resource}", | |
"thumbnail": "{URL of the Hosted Image}", | |
... | |
}' | |
'https://api.boomtrain.com/resources/{model}/{id}' |
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
{ | |
id: "{Resource ID}", | |
model: "{Model Type}", | |
props: { | |
url: "{The Canonical URL}", | |
thumbnail: "{URL to the Hosted Image File}", | |
title: "{Title of the Resource}", | |
... | |
}, | |
updatedAt: "{ISO Formatted Timestamp}" |