Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (27 sloc) 802 Bytes
<!DOCTYPE html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="http://curiator.com/static/js/third_party/jquery.cookie.js"></script>
<script src="http://curiator.com/static/js/third_party/json.js"></script>
<script src="http://curiator.com/static/js/jquery.curiator.min.js"></script>
<script>
$(document).ready(function() {
$('#my-div').curiatorGet({
'key': 'your_api_code_here',
'path': '/profile',
'username': 'jennie',
'size': 's'
}, function(data) {
$('#my-div .name').html(data.name);
$('#my-div .username').html(data.username);
});
});
</script>
</head>
<body>
<div id="my-div">
Name: <span class="name"></span><br />
Username: <span class="username"></span>
</div>
</body>
</html>