Skip to content

Commit 3c657f4

Browse files
authored
Merge pull request GoogleCloudPlatform#365 from GoogleCloudPlatform/api_key
Update Translate API README.md
2 parents 7e8ca22 + 0023503 commit 3c657f4

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

translate/README.md

+13
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,19 @@ libraries.
2222
[maven-download]: https://maven.apache.org/download.cgi
2323
[maven-install]: https://maven.apache.org/install.html
2424

25+
## Authentication
26+
This sample uses API Key for authentication.
27+
28+
* Visit the [Google Cloud Console](https://console.cloud.google.com) and navigate to:
29+
```
30+
API Manager > Credentials > Create credentials > API Key
31+
```
32+
33+
* Set the environment variable GOOGLE_API_KEY
34+
```
35+
export GOOGLE_API_KEY=<YOUR_PROJECT_API_KEY>
36+
```
37+
2538
## Run the sample
2639

2740
To build the sample, we use Maven.

0 commit comments

Comments
 (0)