I know there is a few questions like this, but no one actually helped me. I would like to start using google translate API in my desktop app and set an API key directly in java code.
Is there any way to achieve this?
Thanks in advance
I know there is a few questions like this, but no one actually helped me. I would like to start using google translate API in my desktop app and set an API key directly in java code.
Is there any way to achieve this?
Thanks in advance
There is a method in TranslateOptions.Builder
class, although it is deprecated:
There is some information though that may direct you to how to set this key. You probably can set a path to a file containing api key through setCredentials() method.