google-drive-api

How to recursivelsy read subfolders after speciying “AFolder” in parents?

白昼怎懂夜的黑 提交于 2021-01-29 10:11:47
问题 Basically, in Google Drive API, I’m trying to read a specified folder within the drive. E.g. root/Temp/TestFiles/AreInHere I want to read all files in ‘AreInHere’, and I can do this using a query specifying the id for my desired folder. E.g. ‘’’AreInHere’ in parents’ . This works fine and does as id expect, it also returns all the sub-directories in my folder but doesn’t reclusively get any files with those sub-directories? I have looked at the API reference and all the documentation for

Creating a new folder Google Drive API

大憨熊 提交于 2021-01-29 09:44:18
问题 I am trying to create a new folder in a shared drive through the Google Drive API. It keeps coming back with an error Error: Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream at createError (C:\Users\SSC05\Desktop\project\PID\PID2\node_modules\axios\lib\core\createError.js:16) at dispatchHttpRequest (C:\Users\SSC05\Desktop\project\PID\PID2\node_modules\axios\lib\adapters\http.js:48) at new Promise () at Object.httpAdapter [as adapter] (C:\Users\SSC05\Desktop

Merge two google documents together using node googleapis

不想你离开。 提交于 2021-01-29 08:41:22
问题 I need to merge two google docs into one. I know how to copy one doc, but I need to create a new document which contains the contents of two google docs. I came up with the following: const auth = await authorize(credentials) const docs = google.docs({version: 'v1', auth}) const drive = google.drive({version: 'v3', auth}) const file1ToCopy = await docs.documents.get({documentId: FILE_1_ID}) const file2ToCopy = await docs.documents.get({documentId: file_2_ID}) const {body: body1ToCopy} =

How to displayimage from google drive at page.html?

流过昼夜 提交于 2021-01-29 07:23:39
问题 i trying use image from google drive at my html-page , i shared image and copied link to file. and pasted it to image tag: <img ng-src="https://drive.google.com/open?id=0B0etQtBsI2KmVGVmYjNOSS15VVk" /> but it don't displays: may be somebody knows how i can resolve it ? Thanks for your answers! 回答1: That won't work, the link you are using is an html page. Taken from question Displaying files (e.g. images) stored in Google Drive on a website Replace the open part of the link with uc and it will

Google Apps script move My drive Files to Team drive folder based on file name

孤街浪徒 提交于 2021-01-29 07:16:41
问题 I am new to Google Apps Script. I'm trying to get for our workplace a script to move files from a single folder on a Google My Drive, over to a Team Drive if part of the filename has a certain phrase. However the script is still moving any and all files from the My Drive source folder to the Team Drive target folder, even those that don't have the "required" phrase in the file name. Example file names used: ALT ADJ 01_03_2018 ALT CHG 01_03_2018 ALT CHG 01_04_2018 ALT PMT 01_03_2018 APX ADJ 01

How to upload csv file into google drive and read it from same into python

你。 提交于 2021-01-29 06:25:42
问题 I have a google drive which I have my csv file uploaded in already, the link to share that file is given as: https://drive.google.com/open?id=1P_UYUsgvGXUhPCKQiZWlEAynKoeldWEi I also know my the directory to the drive as: C:/Users/.../Google Drive/ Please give me a step-by-step guide to achieving how to read this particular csv file directly from google drive and not by downloading it to my PC first before reading it to python. I have searched this forum and tried some given solutions such as

Google Drive REST API DriveQuickstart Error 400: redirect_uri_mismatch JAVA

女生的网名这么多〃 提交于 2021-01-29 06:11:51
问题 I've gone through all of the steps listed here: https://developers.google.com/drive/v2/web/quickstart/java and now when I run my project, it gives me a 400 error, redirect url mismatch on Chrome. I've tried following multiple instructions from here: Google OAuth 2 authorization - Error: redirect_uri_mismatch but I am having two key problems: When I go to register the URI in my developers console, I have no field to put the redirect URI's in, and my redirect URI is different every time, from

PHP Cron job to backup to Google Drive

て烟熏妆下的殇ゞ 提交于 2021-01-29 05:24:28
问题 I am trying to set up a cron job that will back up various files from my server to Google Drive. I have looked at many solutions and none seem to work! The closest I have got (using oAuth) is this: <?php /* * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law

I need to save a copy of a google spreadsheet to a specific directory using script

≯℡__Kan透↙ 提交于 2021-01-28 20:43:38
问题 We currently have a nightly balancing process wherein we open an Excel template spreadsheet, enter the correct processing date, and then click a button, causing a VB script to fire off and create a new copy of the spreadsheet with the appropriate name (eg, "BAL 080114") in the appropriate folder and opens it, at which point the operator then closes the template, and continues work in the new copy. The folder structure is: Drive --->Ops Room ------->Procedural Sheets ----------->Night Shift --

How get list files from google drive with http request?

南笙酒味 提交于 2021-01-28 17:45:45
问题 How I can get files list with access token? I read doc google drive, but i dont know how write requests for listing files. My Example: rqf = requests.get('https://www.googleapis.com/drive/v3/files', headers= {"Authorization": access_token}) Output { "error": { "errors": [ { "domain": "global", "reason": "authError", "message": "Invalid Credentials", "locationType": "header", "location": "Authorization" } ], "code": 401, "message": "Invalid Credentials" } } 回答1: You want to retrieve the file