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
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
def update_visibility_file(files): drive = Drive() service = drive.setup_service(drive.setup_creds()) drive.update_visibility(service, files)