Google Translate API in a .NET Windows Application
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.
精彩评论