How to retrieve the list of all GitHub repositories of a person?

后端 未结 15 1261
一个人的身影
一个人的身影 2020-12-02 05:43

We are working on a project where we need to display all the projects of a person in his repository on GitHub account.

Can anyone suggest, how can I display the na

15条回答
  •  心在旅途
    2020-12-02 06:07

    To get the user's 100 public repositories's url:

    $.getJSON("https://api.github.com/users/suhailvs/repos?per_page=100", function(json) {
      var resp = '';
      $.each(json, function(index, value) {
        resp=resp+index + ' ' + value['html_url']+ ' -';
        console.log(resp);
      });
    });

提交回复
热议问题