gapi 帐户数据 url 转到 404 [英] gapi account data url goes to 404

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

问题描述

有谁知道 GAPI 1.3.1 类使用的新帐户数据 url 吗?当前是

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 但它转到 404

问候,

推荐答案

  • 转到:https://code.google.com/apis/console/
  • 登录并创建一个新项目
  • 开启分析 API
  • 点击 Analytics API 链接,然后在左侧菜单中选择 API Access
  • 记下 API 密钥(浏览器应用程序的密钥)
  • 然后在你的代码中,你有:https://www.google.com/analytics/feeds/accounts/default将替换为:https://www.googleapis.com/analytics/v2.4/management/accounts

    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

    还有一个变化要做.每次对信息的调用还必须包含 API 密钥作为名为 key 的 GET 参数

    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

    示例: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 帐户数据 url 转到 404的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆