##Intro:
This bot forwards messages from e-mail to VK dialog.
##How to run:
Firstly, you should place file settings.py
to the project root with the following defiles:
VK_LOGIN
- Your VK bot loginVK_PASSWORD
- Your VK bot passwordVK_APP_ID
- Your VK application idVK_CHAT_ID
- Your VK chat idGMAIL_CLIENT_SECRET_JSON
- Path to file with GMail secret json. See below section with explanationsGMAIL_STORAGE
- Path to file with GMail storage informationLOG_FILENAME
- Path to file with logs
###GMAIL_CLIENT_SECRET_JSON
To get started using Gmail API, you need to first create or select a project in the Google Developers Console and enable the API. Using this link guides you through the process and activates the Gmail API automatically.
Alternatively, you can activate the Gmail API yourself in the Developers Console by doing the following:
- Go to the Google Developers Console.
- Select a project, or create a new one.
- In the sidebar on the left, expand APIs & auth. Next, click APIs. In the list of APIs, make sure the status is ON for the Gmail API.
- In the sidebar on the left, select Credentials.
In either case, you end up on the Credentials page and can create your project's credentials from here.
If you haven't done so already, create your OAuth 2.0 credentials by clicking Create new Client ID under the OAuth heading. Next, look for your application's client ID and client secret in the relevant table. You may also create and edit redirect URIs from this page.
Click Download JSON to save the client secrets file, then place this file at a location where your app can easily access it.
##Python version
Python 2.7 is required. Python 3.x is not supported
##Third Party Libraries and Dependencies
Third party libraries are listed in the requirements.txt
and could be installed via pip
:
$ pip install -r requirements.txt
$ # Or run as module
$ python -m pip install -r requirements.txt
The following links are historical, you should firstly try to install the requirements.txt
dependencies.
In order to run bot you should install the following libraries