From bfc42e61b6624e72be7d994cd611889e58ed92e4 Mon Sep 17 00:00:00 2001 From: Maxim Slipenko Date: Sun, 5 Jun 2022 14:37:23 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BE=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D1=8F?= =?UTF-8?q?=D0=B5=D1=82=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/README.md b/README.md index 53e3292..a1988bb 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,37 @@ +## Установка + +### 1. Настраиваем OAuth авторизацию Google + +#### 1.1 Создаем или выбираем проект в Google Console + +https://console.cloud.google.com/ + +#### 1.2 Включаем People API + +API and Services → Library → Search and Enable the service + +People API + +#### 1.3 Создаем OAuth2 Screen Consent + +API and Services → OAuth Consent Screen + +В разделе Scopes выбираем People API + +В разделе Test users добавляем наш адрес электронной почты + +#### 1.4 Создаем Oauth2 Credentials + +API and Services → Credentials → Create credentials → OAuth client ID + +Application type: `Web application` + +Authorized redirect URI: `http://localhost:42047/` + +Сохраняем OAuth2 Credentials как json в рабочую папку с названием `credentials.json`. + +### 2. Устанавливаем зависимости и запускаем скрипт + ```shell pip install -r requirements.txt python main.py