如何使用Bing Translation API? [英] How to use Bing Translation API?

查看:171
本文介绍了如何使用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?

到目前为止我所做的:

  1. 登录以免费使用API​​( https://datamarket.azure.com/dataset/bing/microsofttranslator )
  2. 创建了一个应用程序: https://datamarket.azure.com/developer/applications
  1. Signed in for the free API useage (https://datamarket.azure.com/dataset/bing/microsofttranslator)
  2. 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:

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

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

NB Microsoft Translator已被Bing Translate取代,后者似乎没有易于使用的API.

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

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