Objective c 需要哪些API才能启用Google自定义搜索?

Objective c 需要哪些API才能启用Google自定义搜索?,objective-c,google-custom-search,Objective C,Google Custom Search,我们正在通过URL调用API: https://www.googleapis.com/customsearch/v1?key=MY_KEY&cx=CUSTOM_SEARCH_ID&q=flower 在响应中获取错误: "error": { "errors": [ { "domain": "usageLimits", "reason": "accessNotConfigured", "message": "Access Not Configured. Please use Goo

我们正在通过URL调用API:

https://www.googleapis.com/customsearch/v1?key=MY_KEY&cx=CUSTOM_SEARCH_ID&q=flower
在响应中获取错误:

"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." }
我们已经启用了自定义搜索API和Google+API。仍然得到上面的错误。我们是否也需要启用其他API


请帮助。

不,我相信定制搜索API是您需要启用的唯一API

所以,我会考虑你是否有正确的密钥和CSE ID。

要验证您的CSE ID,请在此执行测试查询并填写:

如果您的查询在那里工作,但在代码中仍然不工作,那么问题可能是您的关键所在。如果您只是在做一个简单的URL请求,正如您在Q中所示,那么我希望您使用的是服务器密钥。当然,您使用的密钥必须来自启用CSE API的同一项目。

转到 在仪表板屏幕中,仪表板标题附近有一个启用API链接 选择要启用的API。 启用的API将在仪表板中列出。
通过URL调用API并进行检查。

我正在API列表中启用服务,并在测试查询中获得响应,但在应用程序中没有响应可能是的重复项