credentials_file
local path to the credentials.json or credentials_url
in case your file is uploaded to s3. Follow the instructions below to generate the credentials file.scopes
define the level of access granted. It is optional and by default it uses ‘https://…/gmail.compose’ and ‘https://…/gmail.readonly’ scopes.pip install -r requirements.txt
.Create
to create the new project.
APIs & Services
> Library
.
2.3 In the search bar, search for Gmail
.
2.4 Click on Gmail API
, then click Enable
.
APIs & Services
> Credentials
.
3.2 Click on the Create Credentials
button and choose OAuth client ID
.
3.3 If you haven’t configured the OAuth consent screen before, you’ll be prompted to do so now. Make sure to choose External
for User Type, and select the necessary scopes. Make sure to save the changes.
Now, create the OAuth client ID. Choose Web application
for the Application Type and give it a name.
3.4 Add the following MindsDB URL to Authorized redirect URIs
:
http://localhost/verify-auth
http://cloud.mindsdb.com/verify-auth
.Create
.
credentials_file
param.
pip install -r requirements.txt
.