GAPI: Failed to authenticate user. Permanent fix PHP [closed]

和自甴很熟 提交于 2019-11-28 14:04:51

Failed to authenticate user

Means there is something wrong with your authentication.

GAPI hasn't been worked on since 2009. It also appears to use client login which was discontinued / shutdown on April 20 2015. You can no longer use client login with Google Analytics API, you need to switch to Oauth2 or a service account. So either the author of that project needs to fix his code, it appears to be an open source project so you could probably fix it for him.

In my opinion Google PHP client library probably a better solution.

tutorials:

  1. My Tutorial Google Analytics API php Oauth2
  2. My Tutorial Google Analytics api php service account
  3. Googles Tutorial embedded api
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!