【问题标题】:Consume google custom search json apis on iOS app在 iOS 应用上使用谷歌自定义搜索 json api
【发布时间】:2014-06-13 14:29:12
【问题描述】:

我正在尝试从谷歌获取图像并在我的应用程序中显示它们,我正在尝试使用谷歌的自定义搜索 api 我到目前为止所做的事情:

  1. 创建自定义搜索引擎。
  2. 在 API 列表中我开启了自定义搜索
  3. 我的应用的 API 密钥及其包标识符
  4. GTL 库、GTLService、NSURL 连接

但每次我得到结果:

"error": {"errors": [{
"domain": "usageLimits",
"reason": "accessNotConfigured",
"message": "Access Not Configured. Please use Google Developers Console to activate the API for your project."}],"code": 403,"message": "Access Not Configured. Please use Google Developers Console to activate the API for your project." }}

【问题讨论】:

标签: ios google-custom-search


【解决方案1】:

要为您的项目激活 API,请执行以下操作:

1.) 转到 Google Developers Console。 选择一个项目。 在左侧边栏中,选择 APIs & auth。 在显示的可用 API 列表中,找到您要激活的 API,并将其状态设置为 ON。

更新: 2.) 然后转到“API 访问”并指定您的调用域或 IP 地址

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-10-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-05-16
    相关资源
    最近更新 更多