如何使用必应翻译 API? [英] How to use Bing Translation 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=
并获得翻译.从哪里获取 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?
到目前为止我所做的:
- 已登录以免费使用 API (https://datamarket.azure.com/dataset/bing/microsofttranslator)
- 创建了一个应用: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:
- 在https://datamarket.azure.com
- 然后您的代码必须获取访问令牌以登录 BingTranslator API
在 http://msdn.microsoft.com/en 上阅读更多详细信息-us/library/dd576287.aspx
NB Microsoft Translator 已被 Bing Translate 取代,后者似乎没有现成的 API.
这篇关于如何使用必应翻译 API?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!