如何使用必应翻译 API? [英] How to use Bing Translation API?

查看:139
本文介绍了如何使用必应翻译 API?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用必应翻译 API,但我很困惑.似乎有很多可能性(旧的和新的),但我不明白我必须做什么.

I am trying to use the Bing Translation API, but I am confused. There seems to be much possibilities (old and new ones) but I don't understand what I have to do.

有人可以帮我吗?

我想发送一个 HTTP 请求,如 http://api.microsofttranslator.com/V2/Ajax.svc/Translate?appId=&to=de&text=World 并获得翻译.从哪里获取 AppId?

I want to send a HTTP Request like http://api.microsofttranslator.com/V2/Ajax.svc/Translate?appId=<AppId>&to=de&text=World and get the translation. Where to get the AppId?

到目前为止我所做的:

  1. 已登录以免费使用 API (https://datamarket.azure.com/dataset/bing/microsofttranslator)
  2. 创建了一个应用:https://datamarket.azure.com/developer/applications

现在我有了 Client_ID 和 Client_Secret,还有一个帐户密钥(在此处可见 https://datamarket.azure.com/帐户)

Now I have the Client_ID and Client_Secret and also I have a account key (visible here https://datamarket.azure.com/account)

现在该怎么办?

非常感谢或任何帮助!

推荐答案

AppID 已弃用.您需要如何执行以下步骤:

AppID is deprecated. How you need perform following steps:

  1. https://datamarket.azure.com
  2. 然后您的代码必须获取访问令牌以登录 BingTranslator API

http://msdn.microsoft.com/en 上阅读更多详细信息-us/library/dd576287.aspx

NB Microsoft Translator 已被 Bing Translate 取代,后者似乎没有现成的 API.

这篇关于如何使用必应翻译 API?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆