def get_drive_api_from_file(path):
    """
    Open file with OAuth tokens.
    """
    f = open(path)
    credentials = client.OAuth2Credentials.from_json(f.read())
    return _get_drive_api(credentials)
Open file with OAuth tokens.