Skip to content

Instantly share code, notes, and snippets.

@derryl
Forked from tommymcglynn/gist:6892810
Last active December 25, 2015 01:09
Show Gist options
  • Save derryl/6893141 to your computer and use it in GitHub Desktop.
Save derryl/6893141 to your computer and use it in GitHub Desktop.
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script>
(function() {
var _apiHost = 'https://testflightapp.com'
$.ajax({
url: _apiHost+'/api/sdkinfo',
context: document.body,
dataType: 'jsonp'
})
.success( processData )
.error( handleError )
var processData = function(data) { console.log(data) }
var handleError = function(data) { console.log('Failed to fetch SDK info.') }
})(jQuery)
</script>
</head>
<body>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment