Last active
August 29, 2015 14:14
-
-
Save chrisbodhi/ee9e0e658b4420f8bf96 to your computer and use it in GitHub Desktop.
test index
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="https://www.dropbox.com/s/l6hgjq7mh52o6od/spiceworks-sdk.js?dl=1&raw=1" type="text/javascript"></script> | |
<script src="https://code.jquery.com/jquery-2.1.3.min.js" type="text/javascript"></script> | |
<script type="text/javascript"> | |
$(document).ready(function(){ | |
var card = new SW.Card(); | |
var inventory = card.services('inventory'); | |
inventory.request('devices').then(function(data){ | |
$.each(data.devices, function(index, device){ | |
$('body').append('<p>' + device.name); | |
}); | |
}); | |
}); | |
</script> | |
</head> | |
<body> | |
<h3>¡Hola mundo!</h3> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment