Hi.
I need to implement GitHub API in my Laravel 8 project.
User should be able to authorize with his GitHub account, where he can choose his repository (private or public). And then I need to display the Issues related to that repository on my Laravel site.
The problem here is that I do not really know how to start and I don't find any examples that would show me how to do it.
I've found some repositories:
GrahamCampbell/Laravel-GitHub
mckenziearts/laravel-oauth
socialite
But I really do not know what would be the best approach.
I've got two links for reference that I need to use.
github /rest/reference/issues
github developers/apps/building-oauth-apps/authorizing-oauth-apps
(Sorry I coudnt include links)
You’ll need to read GitHub API docs and identify the API endpoints that will give you the data you need. You’ll then need to select a PHP SDK (you’ve already identified a couple) to make requests to GitHub API.
@propero1 Socialite is for interacting with OAuth services. So it will enable you to get an OAuth access token for a user’s GitHub account. You’d then use that access token to interact with the GitHub API as that user.