From 8d552365f57d94e06364d5affc4193bbe257b973 Mon Sep 17 00:00:00 2001 From: alejandrosanchez18 Date: Fri, 24 May 2019 03:08:51 -0300 Subject: [PATCH] Add RedirectUri --- src/setup.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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,';