reopened: user to impersonate get authentication errors
Same issue listed here, still happening: https://github.com/google/google-api-php-client/issues/891
Have you tried reauthorizing the user you are impersonating?
@bshaffer How do you go about reauthorizing an impersonated user?
@jqr108 I wrote about a few ways you can do this here
@bshaffer Thanks bshaffer, that did it!
Couple notes for anyone else with this issue that follows Option Two above:
$client->fetchAccessTokenFromAuthCode($code);
should be
$client->fetchAccessTokenWithAuthCode($code);
and if you're using v1 you'll want to use
$client->authenticate($code);