有没有办法通过api使用Google的Scribe自动填充服务(在谷歌实验室中) - 你给它一个或多个单词并完成它?
答案 0 :(得分:3)
据我所知,Google Scribe仍然没有官方API。但要玩一下,你可以使用像Google Scribe一样的API调用。只需在输入时检查他们正在进行的AJAX调用。
以下是curl的示例调用:
curl -i -X POST -H 'Content-Type: application/json' -d '{"method":"scribe.textSuggestions.get","id":"scribe.textSuggestions.get","params":{"query":". this is a t","cp":40},"jsonrpc":"2.0","key":"scribe.textSuggestions.get","apiVersion":"v1"}' https://www.googleapis.com/rpc?key=AIzaSyBStAcD4WoVx3l1Cmc8xKvJTm2c0G2eqH4