def get_drive_api_from_file(path):
    f = open(path)
    credentials = client.OAuth2Credentials.from_json(f.read())
    return _get_drive_api(credentials)
Open file with OAuth tokens.
dataset/ETHPy150Open tarbell-project/tarbell/tarbell/oauth.py/get_drive_api_from_file