Reputation: 1587
I added django-allauth
to the Django project and I can authentication with GitHub on website.
Right now I have a different task, I want to show a list of all of the GitHub user's repositories on the web page (it will be only repositories of this user).
Do you know how it to do with django-allauth
package?
Or with another package?
Or maybe exist another way?
Upvotes: 0
Views: 1754
Reputation: 538
You can just make a GET
call to their API to get the details of user and their repos.
In your case you can just make a GET
HTTP request to https://api.github.com/users/{username}/repos
. This will fetch you the JSON object containing list of repos of the user, along with some meta-data for each of the repo.
You can find more about GitHub API here.
Upvotes: 2