phone-number-migration/README.md

38 lines
1.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## Установка
### 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
```