Skip to content
Advertisement

Drive API – Save file ID with Python

I´m triying to use Google Drive API quickstart to save all files ids with Python.

I want to save files ids in a txt document

This is my code

JavaScript

I want to save all files ids,but my program is not working properly only saves the last file id

What is happening?

Advertisement

Answer

Delete from (for items in items:) to (archivo.close())

Then copy and paste this:

JavaScript

This should work

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement