https://developers.google.com/google-apps/c.../quickstart/php
Nie rozumie tego:
Czym jest
?
CREDENTIALS_PATH
Wiem ze CLIENT_SECRET_PATH jest plikiem ktory zostal pobrany przy tworzeniu auth aplikacji.
?
CREDENTIALS_PATH
// Load previously authorized credentials from a file. $credentialsPath = expandHomeDirectory(CREDENTIALS_PATH); } else { // Request authorization from the user. $authUrl = $client->createAuthUrl(); // Exchange authorization code for an access token. $accessToken = $client->fetchAccessTokenWithAuthCode($authCode); // Store the credentials to disk. } file_put_contents($credentialsPath, json_encode($accessToken)); }