google-drive-api

Google drive API returns empty list to queries on 'photos' space

早过忘川 提交于 2021-02-07 10:39:16
问题 Using the drive api drive.files.list for the photos space is returning empty file lists. If I do not specify a space, I get a list of files, some of which are members of both the drive and photos spaces, as shown here: Query: GET https://www.googleapis.com/drive/v3/files?pageSize=1000&fields=files&key={YOUR_API_KEY} Response (lots of file metadata, including files with 'spaces' property like this): ..."spaces": ["photos","drive"],... However if I query looking for files from the 'photos'

Picker API - manually set access_token

时光总嘲笑我的痴心妄想 提交于 2021-02-07 10:22:25
问题 I am trying to use the Picker API using this guide, and following the guide works fine. However, my app uses Google sign-in itself to log in the user. Therefore, the auth step in this guide is redundant, as I already have an access_token from when the user logged in (I obtain this by exchanging the auth_code on the server using the node js google api client lib). However, when I try to call the function setOAuthToken(oauthToken) , using this old value of access_token, it shows me this screen

Picker API - manually set access_token

社会主义新天地 提交于 2021-02-07 10:21:29
问题 I am trying to use the Picker API using this guide, and following the guide works fine. However, my app uses Google sign-in itself to log in the user. Therefore, the auth step in this guide is redundant, as I already have an access_token from when the user logged in (I obtain this by exchanging the auth_code on the server using the node js google api client lib). However, when I try to call the function setOAuthToken(oauthToken) , using this old value of access_token, it shows me this screen

How to trigger click on “Save to Google Drive” button

烈酒焚心 提交于 2021-02-07 09:58:41
问题 How to trigger "click" on Save to Google Drive button, i mean, i have my own design for "Save to Google Drive" button. is there any programaticly trigger to open "save to google drive" popups in Javascript? Thanks EDIT i want to modify this api https://developers.google.com/drive/v3/web/savetodrive#getting_started 回答1: You can try: html: <html> <head> <title>Save to Drive</title> </head> <body> <input type="button" id="doitButton" value="Save Chat History in Drive"> <input type="button" id=

How to trigger click on “Save to Google Drive” button

一笑奈何 提交于 2021-02-07 09:57:35
问题 How to trigger "click" on Save to Google Drive button, i mean, i have my own design for "Save to Google Drive" button. is there any programaticly trigger to open "save to google drive" popups in Javascript? Thanks EDIT i want to modify this api https://developers.google.com/drive/v3/web/savetodrive#getting_started 回答1: You can try: html: <html> <head> <title>Save to Drive</title> </head> <body> <input type="button" id="doitButton" value="Save Chat History in Drive"> <input type="button" id=

What is format of Google Drive's FileID ? I need to find out whether new File has been uploaded to my drive or not using API's

好久不见. 提交于 2021-02-07 09:08:11
问题 If FileID follows a particular format like new file has higher values or lower values I can keep track of the old values and find out whether I hace uploaded a new File in drive. 回答1: File ID is just a random string - there is no format. You are taking the wrong approach. Look at the changes resource https://developers.google.com/drive/v3/reference/changes 回答2: The format is a 264 bit number bit 0 5 6 261 261 263 +--------+-----------------+-------+ | 110101 | 256 RANDOM BITS | 00 | +--------

What is format of Google Drive's FileID ? I need to find out whether new File has been uploaded to my drive or not using API's

∥☆過路亽.° 提交于 2021-02-07 09:01:32
问题 If FileID follows a particular format like new file has higher values or lower values I can keep track of the old values and find out whether I hace uploaded a new File in drive. 回答1: File ID is just a random string - there is no format. You are taking the wrong approach. Look at the changes resource https://developers.google.com/drive/v3/reference/changes 回答2: The format is a 264 bit number bit 0 5 6 261 261 263 +--------+-----------------+-------+ | 110101 | 256 RANDOM BITS | 00 | +--------

What is format of Google Drive's FileID ? I need to find out whether new File has been uploaded to my drive or not using API's

风格不统一 提交于 2021-02-07 09:01:04
问题 If FileID follows a particular format like new file has higher values or lower values I can keep track of the old values and find out whether I hace uploaded a new File in drive. 回答1: File ID is just a random string - there is no format. You are taking the wrong approach. Look at the changes resource https://developers.google.com/drive/v3/reference/changes 回答2: The format is a 264 bit number bit 0 5 6 261 261 263 +--------+-----------------+-------+ | 110101 | 256 RANDOM BITS | 00 | +--------

Google picker asking to sign in even after providing access token

家住魔仙堡 提交于 2021-02-07 04:17:16
问题 Firstly, after some research I found out that many people have faced this issue but I did not find any concrete solution to this. Coming to the issue, Objective: I want to integrate google drive with my app so that user can upload files to their drive from my app. So user first has to integrate their drive with the app and then subsequently use google picker to upload/import files. Once Google drive is integrated user should not see auth screen again instead directly google picker should open

Google picker asking to sign in even after providing access token

£可爱£侵袭症+ 提交于 2021-02-07 04:15:18
问题 Firstly, after some research I found out that many people have faced this issue but I did not find any concrete solution to this. Coming to the issue, Objective: I want to integrate google drive with my app so that user can upload files to their drive from my app. So user first has to integrate their drive with the app and then subsequently use google picker to upload/import files. Once Google drive is integrated user should not see auth screen again instead directly google picker should open