diff --git a/src/setup.php b/src/setup.php index 5d1572d..464debb 100644 --- a/src/setup.php +++ b/src/setup.php @@ -26,6 +26,8 @@ $clientId = trim(readline('Google Client ID: ')); $clientSecret = trim(readline('Google Client Secret: ')); echo PHP_EOL; +$redirectUri = trim(readline('redirectUri: ')); +echo PHP_EOL; echo 'You need to select the scopes you need access to. Go to the'; echo PHP_EOL; @@ -48,7 +50,7 @@ } } -$googleOAuth2Handler = new GoogleOAuth2Handler($clientId, $clientSecret, $scopes); +$googleOAuth2Handler = new GoogleOAuth2Handler($clientId, $clientSecret, $scopes, $redirectUri); echo PHP_EOL; echo 'Now, go to the following URL, sign in to your Google Account,';