Last active
August 31, 2015 22:06
-
-
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.
This file contains hidden or 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 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