php - How can I verify my Gmail Oauth process when I'm not given a verification code?

one text

Solution:

You need to supply the full value of the code parameter from the URL you got redirected back to.

In your example, this would be 4/LONG_STRING.

The code began code=4/0AY0 and the / threw me!

The slash should actually be URL-encoded, but if you look at this in the browser address bar, it depends on the browser (/settings), whether it will show it already decoded again there. But in a real implementation you don’t have to worry about that much, because the step they are asking you to perform manually here, will be automated anyway, so it will just be fetched via $_GET['code'] and then passed to the fetchAccessTokenWithAuthCode.

Source