From d171b3eecab447ecde0874f2bae055f57ef2c9b1 Mon Sep 17 00:00:00 2001 From: pierrick Date: Fri, 16 Aug 2024 21:15:51 +0000 Subject: [PATCH] README improvements #2 --- chat/advanced-service/README.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/chat/advanced-service/README.md b/chat/advanced-service/README.md index d1c7cb943..1c6ad18e7 100644 --- a/chat/advanced-service/README.md +++ b/chat/advanced-service/README.md @@ -9,12 +9,13 @@ 1. Override the Apps Script project contents with the files `appsscript.json`, `AppAuthenticationUtils.gs`, and `Main.gs` from this code sample directory. -1. Set the value of the constant `SERVICE_ACCOUNT` in the script - `AppAuthenticationUtils.gs` to the service account private key's JSON. +1. To run samples that use app credentials: - It's only required for code samples that use app credentials, please refer to - https://developers.google.com/workspace/chat/authenticate-authorize-chat-app - to learn more. + 1. Create a service account. For steps, see + [Authenticate as a Google Chat app](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + + 1. Open `AppAuthenticationUtils.gs` and set the value of the constant `SERVICE_ACCOUNT` to + the private key's JSON of the service account that you created in the previous step. ## Run