gapi account data url goes to 404

后端 未结 4 899
孤城傲影
孤城傲影 2021-01-19 07:50

Does anyone know the new account data url used by the GAPI 1.3.1 class? The current one is

https://www.google.com/analytics/feeds/accounts/default but it goes to a

4条回答
  •  没有蜡笔的小新
    2021-01-19 08:15

    • Go to : https: // code.google.com /apis/console/
    • Login and create a new project
    • Turn on Analytics API
    • Click on Analytics API link and then in the left menu choose API Access
    • Note down the API Key (Key for browser apps )

    Then inside your code, where you had: https: // www.google.com/ analytics/feeds/accounts/default will be replaced with: https:// www. googleapis.com/ analytics /v2.4/management/accounts

    There is one more change to do. Each call for info will have to also include the API Key as a GET param named key

    Example: https://www.googleapis.com/analytics/v2.4/management/accounts?start-index=1&max-results=100&key=API_KEY

    I am sorry, I am new here and I can't paste links yet. Hope to get better :)

提交回复
热议问题