Tag: google-api

谷歌免费翻译接口

实验环境:centos6.9 最近有个实验作业用到了翻译,现在网络上翻译接口(谷歌,百度,有道等等)都是收费项目, 无奈囊中羞涩,只有去github逛逛找找有没有相关项目,还真找到了一个 https://github.com/yixianle/translate-api 没装nodejs yum安装nodejs yum install nodejs 把项目克隆下来(没有装git 客户端需要装上 yum install git) git clone https://github.com/yixianle/translate-api.git 克隆完成后进入刚刚克隆的项目 cd translate-api npm安装依赖包 npm install translate-api --save 这时候遇到错误 npm ERR! Linux 3.10.0-514.26.2.el7.x86_64 npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "translate-api" "--save" npm ERR! node v6.12.2 npm ERR! npm v3.10.10 npm ERR! code ENOSELF 解决办法: 修改依赖定义的json文件 vi package.json 把原来的translate-api 

Google Cross Client Authorization and invalid_grant Errors

问题内容: I am currently developing the web component for Google Api cross client authorization as described in this article. https://developers.google.com/identity/protocols/CrossClientAuth Additionally, the environment that I am in is Rails and so I am using the google-api-client gem as described in this article https://developers.google.com/identity/protocols/OAuth2WebServer#handlingtheresponse The authorization code is obtained via the android app using the web