googleworkspace / php-samples

PHP samples for Google Workspace APIs
Apache License 2.0
288 stars 348 forks source link

Problem with quickstart #35

Closed bhaktatejas922 closed 5 years ago

bhaktatejas922 commented 5 years ago

Quickstart just doesnt work, followed all the steps, got the link, entered the verification code, but I just get a blank terminal after running. Using php 7.2, tried it in the command line error

erickoledadevrel commented 5 years ago

Very strange, I'm not able to replicate that, or see a code path that would lead to that output. Have you tried debugging the code at all to see where it fails?

bhaktatejas922 commented 5 years ago

If you have PhpStorm, are you able to replicate it on there?

bhaktatejas922 commented 5 years ago

image

erickoledadevrel commented 5 years ago

I don't use PhpStorm, do you think the failure is specific to that IDE? I'm not sure what you are trying to demonstrate in the screenshot, can you clarify?

bhaktatejas922 commented 5 years ago

I just wanted to show the "errors" my IDE picked up, in case it helps. It said "Expected array, got string" for that part. Not sure if that means there was an issue at an earlier step or what. Going to try it in PHP 7.0, I'll let you know if it works.

bhaktatejas922 commented 5 years ago

Worked in a separate environment with PHP 5.6 as the CLI interpreter, not sure if it was a problem with the environment or PHP version.

erickoledadevrel commented 5 years ago

Glad you got it working!