Setup api key for freebase queries from appengine

[亡魂溺海] 提交于 2019-12-19 10:21:40

问题


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


回答1:


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>



来源:https://stackoverflow.com/questions/10807184/setup-api-key-for-freebase-queries-from-appengine

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!