本文介绍了gapi帐户数据网址转到404的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道GAPI 1.3.1类使用的新帐户数据网址吗?目前的是

,但它会转到404



问候,



  • 转到:https:// code.google.com / apis / console /

  • li>登录并创建新项目
  • 打开Analytics API

  • 点击Analytics API链接,然后在左侧菜单中选择API Access
  • li>
  • 记下API Key(浏览器应用程序的关键)



  • 然后在代码中,有:
    https:// www.google.com/ analytics / feeds / accounts / default
    将被替换为:
    https:// www。 googleapis.com/ analytics /v2.4/management/accounts



    还有一项更改要做。
    每次对info的调用都必须包含API Key作为名为key的GET参数

    示例: API_KEY



    对不起,我在这里是新手,我还无法粘贴链接。希望变得更好:)

    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 404

    Regards,

    解决方案

    • 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/defaultwill 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 :)

    这篇关于gapi帐户数据网址转到404的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

    10-28 19:34