I want to work with google classroom api and get classroom data (Course Material : Lectures/Assignments/etc) from google classroom api.
How can i do that?
I've already tried google classroom documentation but it is way too complex
@AFRASIYABHAIDER - Of course you don't need Socialite. Google's library has all authentication built it. If you insist on using Socialite, you'll have to exchange tokens with Google's library.
For future readers, I strongly suggest to avoid editing content in /vendor/* since all of this will be erased at every opportunity by composer.
Prefer declaring a new client as descripber in step 5 by OP,
and set the variables from your code.
create .env variables, and use env() to call them.
$client = new Google\Client();
$client->setApplicationName("Client_Library_Examples");
$client->setDeveloperKey("YOUR_APP_KEY");
or better, use a service account where credentials are stored in a simple .json file on the project.