google-drive-api

Google Drive API Insufficient Permission: Request had insufficient authentication scopes

北城以北 提交于 2021-02-10 17:53:26
问题 I successfully completed the quickstart shows HERE: https://developers.google.com/drive/api/v3/quickstart/python I wish to go further and begin to upload files and folders. To do so I have replaced the scope with: SCOPES = ['https://www.googleapis.com/auth/drive'] I have also replaced the execution with national_parks = ['Yellowstone', 'Rocky Mountain', 'Yosemite'] for national_park in national_parks: file_metadata = {'name': national_park, 'mimeType': 'application/vnd.google-apps.folder' #

How to get cell edit date in Google Sheets via API?

你。 提交于 2021-02-10 11:50:37
问题 I have auto-updated Google Sheet with 1500+ rows. I need to fill new column with Dates when A-column cells were changed. I have tried to get data from Google Drive Revisions, but I can't "look inside of the file" without downloading, cause this API provides only exportLinks . How can I get cells edit dates via API or some other way? It will be great to write smth like: sheet = SpreadsheetApp.getActiveSheet(), AColumn = sheet.getRange('A1:A') ALastRow = AColumn.lastrow() for (var i = 1; i <

Google Drive Api stops working after publishing app

半城伤御伤魂 提交于 2021-02-10 08:05:30
问题 I'm using google drive api in my app which works fine on both debug and release builds when I install it using .apk file. But if I publish the same release .apk on playstore and then download it from there I can't sign in to Google. All I can find regarding the issue is that people aren't using release keystore to generate credentials on Google's developer console, which is not the case for me. 回答1: I found a problem: Check if you have been enrolled in App Signing program under Release

Google Drive Picker: Use Feature.MINE_ONLY along with Feature.SUPPORT_DRIVES

我是研究僧i 提交于 2021-02-10 07:23:57
问题 I am trying to create a Google Drive Picker that displays the following views: A "folder" view, displaying the folder tree of the current user, allowing him to only pick files that the current user owns A "recent" view, displaying the latest opened files, that the current user owns A "shared drives" view (note: previously named "team drives"), displaying the current user's shared drives that he has access to (he his not owner of the files, as shared drives files are owned by the G Suite

Python Google Drive API file-delete() method broken

此生再无相见时 提交于 2021-02-10 05:52:11
问题 I cannot get google-drive file-delete() method to work via the Python API. It is acting broken. I offer some info about my setup: Ubuntu 16.04 Python 3.5.2 (default, Nov 12 2018, 13:43:14) google-api-python-client (1.7.9) google-auth (1.6.3) google-auth-httplib2 (0.0.3) google-auth-oauthlib (0.3.0) Below, I list a Python script which can reproduce the bug: """ googdrive17.py This script should delete files named 'hello.txt' Ref: https://developers.google.com/drive/api/v3/quickstart/python

How to use Google Drive API to upload files in my Drive (PHP)?

孤者浪人 提交于 2021-02-08 12:15:28
问题 I want to make a webpage in which there will be an file input box, and the files which user uploads, should be saved into my Google Drive. How do I achieve it using PHP? I don't want to use composer I need refreance to a good article with some indications I checked on Google but I found articles to write on other's Drive, but not my own. Also, I checked the Drive API documentation, but I think its too professional for me! Please tell me how to make a simple uploading PHP page. 回答1: Upload to

IMPORTDATA Google Sheet CSV on Google Drive

旧时模样 提交于 2021-02-08 11:41:29
问题 So I'm starting to really get into utilizing Google Drive to streamline my many personal projects. One of the things I'd love to do is figure out how to download CSV files onto my Google Drive, and have Google Sheets automatically do an =IMPORTDATA on any new .csv files in a specific directory. I've come across a number of problems trying to figure this out, but the biggest issue is that putting any kind of file on the Google Drive doesn't give you a link to the file itself, but rather

Why am I getting server replied forbidden from google drive rest api?

隐身守侯 提交于 2021-02-08 10:42:33
问题 My Goal: I am trying to connect my Qt desktop app with google drive. Right now my goal is simple i.e get list of all files from my drive (In JSON form) What I have done so far. I have followed this tutorial Connecting your Qt application with Google Services using OAuth 2.0 and created my own wrapper class for it. I have followed all the steps till grant() function is called. The scope is https://www.googleapis.com/auth/drive . Everything is working fine till now. I used the signal

sendNotificationEmail doesn't work with service account (Drive API v3)

我与影子孤独终老i 提交于 2021-02-08 09:36:06
问题 I can't send an email notification when I add permission in a file with the drive API v3 , before May, it works fine but since 14/05/2020 doesn't send an email with node v10.16.3 . I do this to authenticate: and then when I add permission: Response from drive service enter image description here 回答1: This issue has been reported on Google's Public Issue tracker Basically, Service acocunts seemed temporarily not be able to send notification emails on their own behalf. The notification emails

FFMPEG using Google Drive API instead of Shared URL

孤者浪人 提交于 2021-02-08 08:57:58
问题 We are using FFMPEG to stream a Google Drive URL into a node application. Is there an FFMPEG method or library we can use to stream to FFMPEG using the Google Drive API instead of using the standard public shared URL? At the moment using the URL works fine if the file size is <100mb but with bigger files we get an error: https://drive.google.com/uc?export=download&id=fileId: Invalid data found when processing input This is because we reach the pesky gDrive virus roadblock page: 回答1: From your