Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

0 votes
0 answers
22 views

In Node.js, fetching Label of file (Gdrive=> Sheet/Doc)but response gives id (Name is not there)

Used these: https://developers.google.com/drive/api/guides/list-labels?hl=en const labelListResponse = await service.files.listLabels({ fileId: 'FILE_ID', }); https://developers.google.com/drive/...
Lokesh Jha's user avatar
0 votes
1 answer
68 views

Google Drive API | Third-party cookie will be blocked. Problem with inserting a url-link into the src attribute of the img tag

I need get a Google drive image to the site. I have a public link: https://drive.google.com/file/d/1-CzE1D-U9QZaobPOr--NAb4EPHPJD4iN/view?usp=drive_link. //It opened without problems on others ...
Logitech's user avatar
0 votes
0 answers
28 views

session being overwritten using node js express passport authentication oath2 session for google

Google suggests to ask a user for a minimal set of permission when first signing up a user, and to then ask to extend those permissions when/if needed by the user. So, I have used token based ...
user25295461's user avatar
1 vote
1 answer
79 views

NodeJS code to create a Gmail email draft with an attachment from Google Drive given a FileID

I need to compose a draft email using the GMail APIs with an attachment given a fileId from Google Drive using Google Drive APIs. I have a working GMail API call that creates a draft email (without an ...
Deep Trikannad's user avatar
2 votes
1 answer
40 views

How can I Filter Drive API list results by a domain with write permission

I am trying to get a list of files from the drive API with a service account, that allow a specific domain to edit them. I have it working for specific emails without issue, but I also need to be able ...
Funnybros Inc.'s user avatar
1 vote
1 answer
48 views

Google Drive API Returns 200 (HTTP Success) for testing pdf export but no file

The entire test script is as follows: // File export test: Authorization code: https://gist.github.com/LindaLawton/76bef3ab760f335d43eccaf481e0b4d0 // Google Ref https://github.com/googleworkspace/...
Dave's user avatar
  • 853
0 votes
0 answers
32 views

How to get specific files within a folder from google drive API in node js. I have Folder id and some file ids

How to get specific files within a folder in node js. I have Folder id and some file ids. const response = await drive.files.list({ q: `'${folderId}' in parents and '${fileId}' in parents` }); ...
Hiruna Lalanga's user avatar
0 votes
0 answers
16 views

NodeJS storing file in memory/disc instead of directly transfering it over to google drive

Using the following code to upload a file to Google Drive. When files over 4-5GB are being transferred, this code continuously starts consuming memory, which then results in an error. I want it to ...
Muneeb Ajaz's user avatar
0 votes
0 answers
32 views

"Correct" approach to pass response from GoogleDriveAPI files.get(alt: media) to react frontend through express backend

I am querying (successfully) the google drive api using this function in my nodejs express backend: export async function getImageById(imageId: string, fields?: string) { try { await (await ...
masonjacob's user avatar
3 votes
2 answers
72 views

Unable to transfer ownership in google drive v3 api in my node project

I tried following the docs but they don't provide a working example of how to use the feature. This is my implementation: async function transferOwner( ){ const authClient = await authorize(); ...
user avatar
0 votes
0 answers
82 views

Trigger Warning: Mysterious Memory Spike on Google Drive Upload using Google Cloud Run

The memory spikes don't resolve during image re-uploads to Google Drive. The workflow is straightforward - download an image from Drive, transform it using Sharp.js, and then upload it back. Yet, when ...
KevinF20's user avatar
0 votes
0 answers
53 views

Issue with Google Drive API Integration: Unexpected HTML Response from Backend in Production Environment

I have developed a web application using the MERN stack.I'm encountering a problem with the integration of the Google Drive API into my web application deployed in a production environment. The goal ...
user23817303's user avatar
0 votes
0 answers
28 views

"authClient is not a function" in Electron app

I'm relatively new to Electron, and I've been trying to get over this error for the past 5 days. I've tried many of the other posts's answers, but I've had no luck From the Dev Tools window, I get the ...
MarcosLC's user avatar
0 votes
0 answers
78 views

Trouble Running Google Apps Script in shared drive

I am encountering an issue while attempting to run a Google Apps Script attached to a Google Sheet stored on a shared drive which was created using Node.js and the Google Drive API with a service ...
user23224430's user avatar
0 votes
1 answer
187 views

Google Drive - Authenticating with JSONClient using Node

I have succesfully authenticated using OAuth2 and now have an auth token. Loading this token returns me a JSONClient: const authClient = google.auth.fromJSON(credentials); Now trying to use this ...
Kong's user avatar
  • 9,236

15 30 50 per page
1
2 3 4 5
32