Skip to content

Tag: google-drive-api

Create nested folders with Google Drive API

I need to add a new file in a nested folder on Google Drive using Google Drive api in the form YYYY/MM/DD/HH/mm/file where the dates are dynamically created basing on the current date. For example: I created the following script in Python, but it is creating one single folder (named “2021/06/16/11/30&#8…

Authorisation Error 400: redirect_uri_mismatch – cannot generate needed token files for the ezsheets module

I need to use the ezsheets module which requires the use of both Google Drive and Google Spreadsheets APIs. I enabled them and have managed to gain the required credentials, which I passed in the python project folder. According to Google Spreadsheets documentation, the next step should be gaining the two req…

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 I want to save all files ids,but my program is not working properly only saves the last file id What is happening? Answer Delete from (for items in items:) to (archivo.c…

Getting WebViewLinks with Google Drive

I’ve just started trying to use the Google Drive API. Using the quickstart guide I set up the authentication, I can print a list of my files and I can even make copies. All that works great, however I’m having trouble trying to access data from a file on Drive. In particular, I’m trying to g…