Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (27 sloc) 835 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/collection',
'username': 'jennie',
'size': 's'
}, function(data) {
var html = [];
for (var i = 0; i < data.length; ++i) {
html.push('<img src="http://static.curiator.com' + data[i]['src'] + '" />');
}
$('#my-div').html(html.join('<br />'));
});
});
</script>
</head>
<body>
<div id="my-div"></div>
</body>
</html>