google-picker

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

Google Picker with AccessToken not working

泪湿孤枕 提交于 2021-02-08 11:42:41
问题 I can't seem to get Google Picker working. I have authenticated my user using the PHP League Oauth Provider After authenticating, an accessToken for my user looks something like this; ya67.Fi_dfioriogneegroig7Czdy54z0sdfdvnfr9fn38n3n93 This is my Javascript and HTML code for rendering the picker; <a href="{{ appContextInstallId }}/authenticate" class="btn info"> <i class="icon-bolt"></i> Authenticate </a> <button onClick="createPicker()">Add a new document</button> <script type="text

Google Picker API - how to load a picker on demand

老子叫甜甜 提交于 2021-02-08 11:14:08
问题 I want to use the google picker api . The example shows the picker being loaded when the page loads, and I want a picker to be loaded when I click on something, but it doesn't seem to work properly in that situation. So the working example is: <script> google.setOnLoadCallback(createImgPicker); google.load('picker', '1'); function createImgPicker(){ //CREATE HERE } </script> but what I want is something like: $('#button').on('click',function(){ google.setOnLoadCallback(createImgPicker);

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

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

Google Picker - Return the File ID to my Google Script

≡放荡痞女 提交于 2021-02-07 03:54:33
问题 I have a fairly basic spreadsheet that uses some Google Scripts to accomplish various tasks. I was trying to cleanup the interface for the end user, and decided to implement the Google Picker. Originally the user had to manually import a CSV into the spreadsheet. The new goal here is to select the CSV via the Google Picker, upload it, import it, then delete it. I already have all the code working to import it and delete it. I just worked up the code for the picker, and it seems to work fine.

Google Picker - Return the File ID to my Google Script

筅森魡賤 提交于 2021-02-07 03:53:26
问题 I have a fairly basic spreadsheet that uses some Google Scripts to accomplish various tasks. I was trying to cleanup the interface for the end user, and decided to implement the Google Picker. Originally the user had to manually import a CSV into the spreadsheet. The new goal here is to select the CSV via the Google Picker, upload it, import it, then delete it. I already have all the code working to import it and delete it. I just worked up the code for the picker, and it seems to work fine.

Google Picker - Return the File ID to my Google Script

|▌冷眼眸甩不掉的悲伤 提交于 2021-02-07 03:48:58
问题 I have a fairly basic spreadsheet that uses some Google Scripts to accomplish various tasks. I was trying to cleanup the interface for the end user, and decided to implement the Google Picker. Originally the user had to manually import a CSV into the spreadsheet. The new goal here is to select the CSV via the Google Picker, upload it, import it, then delete it. I already have all the code working to import it and delete it. I just worked up the code for the picker, and it seems to work fine.