Skip to content

Instantly share code, notes, and snippets.

@hitautodestruct
Created November 12, 2013 14:07
Show Gist options
  • Save hitautodestruct/7431368 to your computer and use it in GitHub Desktop.
Save hitautodestruct/7431368 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="An example of using the open weather map api.">
<script src="http://code.jquery.com/jquery-latest.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
</body>
</html>
$.ajax({
url:'http://api.openweathermap.org/data/2.5/weather?q=Binyamina&units=metric', success: function (data) {
$(document.body).html(JSON.stringify(data));
},
dataType: 'jsonp'
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment