为来自appengine的freebase查询设置api密钥 [英] Setup api key for freebase queries from appengine
问题描述
我遵循了以下指示信息: https://developers.google.com/console /帮助/#generatingdevkeys / 。我注册了freebase服务,并将浏览器应用程序的Simple API密钥添加到查询中: https://api.freebase.com/api/service/mqlread?key=keygoeshere&query= {MQLquery}
然后我得到以下错误:
{u'code':100,u'message':u'Invalid API Key(key not found )',u'stat':u'fail'}
如果我从查询中删除键它工作在本地,但远程我得到: freebase api错误部署到appengine:DownloadError:ApplicationError:2 。我相信这是由于freebase阻止了appengine,因为这个键没有被注册或识别
文档说, code> http://api.freebase.com API 已被弃用(第一段)。
您应该通过google url访问Freebase: https://www.googleapis.com/freebase/ v1 / search?q = bob& key =< YOUR_API_KEY>
I have followed these instructions: https://developers.google.com/console/help/#generatingdevkeys/. I registered the freebase service and added the Simple API key for browser apps to the query: https://api.freebase.com/api/service/mqlread?key=keygoeshere&query={MQLquery}
I then get the following error:
{u'code': 100, u'message': u'Invalid API Key (Key not found)', u'stat': u'fail'}
If I remove the key from the query it works locally but remotely I get: freebase api error on deployment to appengine: DownloadError: ApplicationError: 2. Which I believe is due to freebase blocking the appengine because the key is not registered or recognised
The docs say that the old http://api.freebase.com
API has been deprecated (first paragraph).
You should access Freebase through google url: https://www.googleapis.com/freebase/v1/search?q=bob&key=<YOUR_API_KEY>
这篇关于为来自appengine的freebase查询设置api密钥的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!