如何使用Bing Translation API? [英] How to use Bing Translation API?
问题描述
我正在尝试使用Bing Translation 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://api.microsofttranslator.com/V2/Ajax.svc/Translate?appId=<AppId>&to=de&text=World
这样的HTTP请求并获取翻译.在哪里获取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
- Signed in for the free API useage (https://datamarket.azure.com/dataset/bing/microsofttranslator)
- Created an App: https://datamarket.azure.com/developer/applications
现在,我有了Client_ID和Client_Secret,并且还有一个帐户密钥(在此处可见 https://datamarket.azure .com/account )
Now I have the Client_ID and Client_Secret and also I have a account key (visible here https://datamarket.azure.com/account)
现在该怎么办?
非常感谢或提供任何帮助!
Thanks a lot or any help!
推荐答案
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.
这篇关于如何使用Bing Translation API?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!