使用Google文档列表API上传文档时自动翻译不起作用

时间:2012-05-16 10:08:41

标签: google-docs-api

我尝试使用Google Document List API的第3版自动翻译文档。 documentation只是说要在初始HTTP POST请求中添加“sourceLanguage”和/或“targetLanguage”参数。

所以这是我发送的请求:

POST /feeds/upload/create-session/default/private/full?sourceLanguage=fr&targetLanguage=en
Authorization: GoogleLogin auth=<authentication token>
GData-Version: 3.0
Content-Type: application/atom+xml
Content-Length: 163
X-Upload-Content-Type: text/plain
X-Upload-Content-Length: 50

<?xml version="1.0" encoding="UTF-8"?><entry xmlns="http://www.w3.org/2005/Atom" xmlns:docs="http://schemas.google.com/docs/2007"><title>french.txt</title></entry>

我尝试使用非常简单的.txt文件以及.doc(法语到英语)。 文件已正确上载到服务,但不会进行转换。

上传文档中使用工具 - >翻译菜单的翻译工作正常,因此“翻译引擎”能够执行我尝试通过API进行的翻译。

文档错了吗?自动翻译如何运作?

0 个答案:

没有答案