Skip to content

Instantly share code, notes, and snippets.

@DorukUlucay
Created May 7, 2018 11:37
Show Gist options
  • Select an option

  • Save DorukUlucay/cffd7fc51d7c65d38571163a05d1dd78 to your computer and use it in GitHub Desktop.

Select an option

Save DorukUlucay/cffd7fc51d7c65d38571163a05d1dd78 to your computer and use it in GitHub Desktop.
github api
<html>
<head>
<!-- <title></title> -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<!-- <style></style> -->
<!-- <link rel="stylesheet" type="text/css" href=""> -->
</head>
<body>
<p id="repos"></p>
<script>
document.addEventListener("DOMContentLoaded", function(event) {
$.ajax("https://api.github.com/users/dorukulucay/repos").done(function(r) {
for (i in r) {
var url = r[i];
$("#repos").append("<p><a href='" + url.html_url + "'>" + url.name + "</a></p>");
}
});
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment