Use Javascript to get the list of a user's Github repositories

后端 未结 4 1832
迷失自我
迷失自我 2021-02-04 19:58

First of all, thanks for reading.

I am hosting my current projects on GitHub. Using GitHub Pages, I ]host my personal blog, you can reach the blog here.

On the b

4条回答
  •  遥遥无期
    2021-02-04 20:52

    The script that you posted isn't working because the URL is for the older API. Change the URL to this and it should work for you.

    https://api.github.com/users/YOUR_USERNAME_HERE/repos?callback=CALLBACK
    

    Note: callback= is optional.

提交回复
热议问题