8000 Upated outdated authentication instructions. (#1145) · daniel-sanche/java-docs-samples@4105662 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4105662

Browse files
kurtisvgnnegrey
authored andcommitted
Upated outdated authentication instructions. (GoogleCloudPlatform#1145)
1 parent 736d750 commit 4105662

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

language/analysis/README.md

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,17 @@ for entity recognition.
99

1010
[NL-Docs]: https://cloud.google.com/natural-language/docs/
1111

12-
## Java Version
12+
## Prerequisites
13+
14+
### Java Version
1315

1416
This sample requires you to have
1517
[Java8](https://docs.oracle.com/javase/8/docs/technotes/guides/install/install_overview.html).
1618

1719
**Note** The Natural Language client is not supported by App Engine Standard.
1820

19-
## Download Maven
21+
22+
### Download Maven
2023

2124
This sample uses the [Apache Maven][maven] build system. Before getting started, be
2225
sure to [download][maven-download] and [install][maven-install] it. When you use
@@ -27,6 +30,22 @@ libraries.
2730
[maven-download]: https://maven.apache.org/download.cgi
2831
[maven-install]: https://maven.apache.org/install.html
2932

33+
### Set Up to Authenticate With Your Project's Credentials
34+
35+
Please follow the [Set Up Your Project](https://cloud.google.com/natural-language/docs/getting-started#set_up_your_project)
36+
steps in the Quickstart doc to create a project and enable the
37+
Cloud Natural Language API. Following those steps, make sure that you
38+
[Set Up a Service Account](https://cloud.google.com/natural-language/docs/common/auth#set_up_a_service_account),
39+
and export the following environment variable:
40+
41+
```
42+
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/your-project-credentials.json
43+
```
44+
45+
[cloud-console]: https://console.cloud.google.com
46+
[language-api]: https://console.cloud.google.com/apis/api/language.googleapis.com/overview?project=_
47+
[adc]: https://cloud.google.com/docs/authentication#developer_workflow
48+
3049
## Run the sample
3150

3251
To build the sample, we use Maven.

0 commit comments

Comments
 (0)
0