예제 #1
0
def get_email_user():
    drive = Drive()
    creds = drive.setup_creds()
    emailUser = []

    print("GETTING USER EMAIL")
    emailUser.append(drive.get_user_info(creds)['email'])
    print("DONE!")

    return emailUser
예제 #2
0
def get_files():
    drive = Drive()
    service = drive.setup_service(drive.setup_creds())

    print("GETTIN FILES EXTENSION")
    fileExtension = drive.get_file_extension(service)
    print("DONE!")
    print("GETTING FILES FROM GOOGLE DRIVE")
    files = drive.get_data_api(service)
    print("DONE!")

    return files, fileExtension
예제 #3
0
def update_visibility_file(files):
    drive = Drive()
    service = drive.setup_service(drive.setup_creds())

    drive.update_visibility(service, files)