DEV Community

Discussion on: Google Drive API access via Service Account - Python

Collapse
 
gdledsan profile image
Edmundo Sanchez

oauth2client is deprecated
Now you need something like:

from google.oauth2.service_account import Credentials

Credentials.from_service_account_file(key_file_location)