开发者

Google Translate API in a .NET Windows Application

开发者 https://www.devze.com 2023-02-03 09:44 出处:网络
I have a .NET windows application which uses the Google Translate API. When trying to translate strings today i got a \"Terms of Abuse\" exception. To use a google API effectively, it is recommended t

I have a .NET windows application which uses the Google Translate API. When trying to translate strings today i got a "Terms of Abuse" exception. To use a google API effectively, it is recommended that you register for a key which should resolve this problem. My translate API does not use a ke开发者_如何学编程y. However to use a key,the site states that we would need to enter a valid URL of ours - e.g. http://localhost etc. However this one is a windows application. How do i get a valid key?


I worked with google API (geocoding and maps) and the key really doesn't matter. I entered any key and it did fine.


From the Google Translate 'Getting Started' guide:

Important: The Google Translate API requires the use of an API key, which you can get from the Google APIs console.

That page has a link to instructions to get a key.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号