Skip to content

Instantly share code, notes, and snippets.

@boomtrain-support
Last active August 31, 2015 22:06
Show Gist options
  • Select an option

  • Save boomtrain-support/3933c68b544639680c6d to your computer and use it in GitHub Desktop.

Select an option

Save boomtrain-support/3933c68b544639680c6d to your computer and use it in GitHub Desktop.
GET /resources/:model/:id - Retrieve the specified model type and Resource using jQuery.
<script>
// Get the Resource by model type and ID
function getResourcesModelId() {
// Send a jQuery AJAX request to retrieve the Resource
$.ajax({
url: 'https://api.boomtrain.com/resources/{model}/{id}',
// Replace with your App Id
headers: {'x-app-id': '{app_id}'},
type: 'GET',
success: function(msg) {
console.log(msg);
}
});
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment