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
Class 'Google_Auth_AssertionCredentials' not found #748
Comments
Oh, I've just found https://github.com/google/google-api-php-client/blob/master/UPGRADING.md So it's the docs at https://developers.google.com/analytics/devguides/reporting/core/v3/quickstart/service-php that are wrong. |
Google_Auth_AssertionCredentials has been removed in 2.x See UPGRADING.md |
@ShelterJames I've encountered several issues with 2.x since it's been released. |
I've gone back to V1 and got some data out .... so guess issue is https://developers.google.com/analytics/devguides/reporting/core/v3/quickstart/service-php should mention it's V1 of the lib. Anyway, thanks. |
You are correct that the docs are not up to date with We could put a banner in the README: "If you arrived here from developers.google.com, you should be using the v1-branch of this repo" |
Ah, I see
Firstly, sorry if I was a bit harsh. Stupid day yesterday. I think the reason I missed that the first time is that I was looking for composer setup. I'd seen the Github repo and knew this was an option, so grabbed the version from there. So things I would do:
in section 3 to have require statements for both composer and direct download, something like:
with maybe a line at the top saying "Use whichever 'require_once' statement matches your method of download, and remove the other one."
Thanks, |
Thanks to whomever reported this issue. I just copypasta'd the Analytics Hello World and found myself in similar situations. Path forward was laid out for me in @ShelterJames's link: Anyways, commenting to say that I've been working with this lib for a few years. While the auth tweaks are minimal, I'm finding that the interface has been tremendously simplified for service accounts. This is a welcome change. Thank you @google team. |
Thank you for y our feedback @buley! |
Create new Dir
Add composer.json with
Run composer update - this gets v2.0.0-RC2 currently
Edit index.php
This is taken from https://developers.google.com/analytics/devguides/reporting/core/v3/quickstart/service-php
Run php index.php
I'm guessing PSR Autoload problem, or docs are wrong.
The text was updated successfully, but these errors were encountered: