The sample code in that page is using the old version of the library (0.6.*). You can either download the old lib version (not recommended) or update the code following the migration guide.
Google API does not match developer guide
-
17-06-2023 - |
Pergunta
I'm trying to use the PHP Google API from here: https://github.com/google/google-api-php-client following the Google Analytics developer guide here: https://developers.google.com/analytics/devguides/reporting/core/v3/coreDevguide. But, they don't seem to match at all. There is no setUseObjects
function. There is no apiAnalyticsService
but I do see that there is a Google_Service_Analytics
and there are a lot of other differences and it's impossible to even follow the guide even though it points to that same github repo as the client library that is supposed to be used.
Am I completely missing something here?
Solução
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow