Skip to content

Commit b95b60c

Browse files
authored
doc: Format and fix readme (#339)
1 parent 4ca062f commit b95b60c

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

python/auth-app/README.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,14 @@ This sample demonstrates how to create a Google Chat app that requests authoriza
1919
## Deployment Steps
2020

2121
1. **Enable APIs:**
22-
* Enable the People API: [Enable People API](https://console.cloud.google.com/flows/enableapi?apiid=people.googleapis.com)
2322
* Enable the Cloud Datastore API: [Enable Datastore API](https://console.cloud.google.com/flows/enableapi?apiid=datastore.googleapis.com)
23+
* Enable the People API: [Enable People API](https://console.cloud.google.com/flows/enableapi?apiid=people.googleapis.com)
24+
* Enable the Google Chat API: [Enable Chat API](https://console.cloud.google.com/flows/enableapi?apiid=chat.googleapis.com)
25+
26+
```bash
27+
gcloud services enable \
28+
datastore.googleapis.com people.googleapis.com chat.googleapis.com
29+
```
2430

2531
2. **Create OAuth Client ID:**
2632
* In your Google Cloud project, go to [APIs & Services > Credentials](https://console.cloud.google.com/apis/credentials).
@@ -30,7 +36,7 @@ This sample demonstrates how to create a Google Chat app that requests authoriza
3036
* Download the JSON file and rename it to `client_secrets.json` in your project directory.
3137

3238
3. **Deploy to App Engine:**
33-
* Open `app.yaml` and replace `<SERVICE_ACCOUNT>` with the email address of your App Engine default service account (you can find this in the App Engine settings in Cloud Console).
39+
* Open `app.yaml` and replace `<SERVICE_ACCOUNT>` with the email address of your App Engine default service account (you can find this in the [App Engine settings](https://console.cloud.google.com/appengine/settings) in Cloud Console).
3440
* Deploy the app:
3541
```bash
3642
gcloud app deploy
@@ -60,8 +66,8 @@ This sample demonstrates how to create a Google Chat app that requests authoriza
6066
1. **Enable the Google Chat API:** [Enable Chat API](https://console.cloud.google.com/flows/enableapi?apiid=chat.googleapis.com)
6167
2. **Create a Google Chat App:**
6268
* Go to [Google Chat API](https://developers.google.com/chat/api/guides/quickstart/apps-script) and click "Configuration".
63-
* Enter your App Engine app's URL (obtained in the previous deployment steps) as the **Bot URL**.
64-
* Complete the rest of the configuration as needed.
69+
* Enter your App Engine app's URL (obtained in the previous deployment steps) as the **HTTP endpoint URL**.
70+
* Complete the rest of the configuration as needed.
6571
6672
## Interact with the App
6773
@@ -80,7 +86,7 @@ This sample demonstrates how to create a Google Chat app that requests authoriza
8086
2. **Set Environment Variable:**
8187
```bash
8288
export GOOGLE_APPLICATION_CREDENTIALS=./service-acct.json
83-
````
89+
```
8490
8591
3. **Create Virtual Environment (Recommended):**
8692
@@ -103,7 +109,7 @@ This sample demonstrates how to create a Google Chat app that requests authoriza
103109
104110
6. **Test the App:**
105111
106-
```
112+
```bash
107113
curl \
108114
-H 'Content-Type: application/json' \
109115
--data '{

0 commit comments

Comments
 (0)