Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not found $people->all() #28

Open
mabregu opened this issue Nov 7, 2019 · 1 comment
Open

not found $people->all() #28

mabregu opened this issue Nov 7, 2019 · 1 comment

Comments

@mabregu
Copy link

mabregu commented Nov 7, 2019

{ "error": { "code": 401, "message": "Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.", "status": "UNAUTHENTICATED" } }

in GooglePeople.php line 63
at GooglePeople->all()


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@m2k6artworks
Copy link

I have the same problem. When I run the setup.php via cmd and follow the step. My refresh token are always NULL.

So I try to open the file ('..vendor\rapidwebltd\php-google-oauth-2-handler\src\GoogleOAuth2Handler.php') and edit the script

I change the code in line 33 with this (replace the string with your own uri):
$this->client->setRedirectUri('http://localhost/peopleapi/');

I change the code in line 35 with this :
$this->client->setApprovalPrompt('select_account consent');

Now try run the setup.php again via cmd and follow the step

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants