Skip to content

Instantly share code, notes, and snippets.

@mheadd
Created November 5, 2010 14:54
Show Gist options
  • Select an option

  • Save mheadd/664251 to your computer and use it in GitHub Desktop.

Select an option

Save mheadd/664251 to your computer and use it in GitHub Desktop.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>jQuery / Phono Sample</title>
<style type="text/css">
</style>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.phono.js"></script>
</head>
<script>
$(document).ready(function(){
var phono = $.phono({
apiKey: "enter-your-api-key",
onReady: function() {
console.log("Connected");
console.log("Phono Session ID: " + this.sessionId);
$("#status").append("<p>Phono Session ID: " + this.sessionId + "</p>");
}
});
});
</script>
<body>
<div id="status"></div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment