google-drive-api

Google Drive Consent Screen Stuck

被刻印的时光 ゝ 提交于 2021-02-16 05:21:00
问题 I am trying to backup the application data of my android app on Google Drive. Therefore I request access to the https://www.googleapis.com/auth/drive.appdata, https://www.googleapis.com/auth/drive.file scopes using the google_sign_in package. I created a project on the Google Developer Console, enabled the Drive API and added the scopes to the OAuth Consent Screen and added an OAuth Client ID with the package name and the SHA-1 of the debug key. The application works fine if I don't request

Google Drive Consent Screen Stuck

馋奶兔 提交于 2021-02-16 05:20:58
问题 I am trying to backup the application data of my android app on Google Drive. Therefore I request access to the https://www.googleapis.com/auth/drive.appdata, https://www.googleapis.com/auth/drive.file scopes using the google_sign_in package. I created a project on the Google Developer Console, enabled the Drive API and added the scopes to the OAuth Consent Screen and added an OAuth Client ID with the package name and the SHA-1 of the debug key. The application works fine if I don't request

How to play google drive mp3 file using html audio tag?

家住魔仙堡 提交于 2021-02-15 10:16:03
问题 My aim is to play the mp3 file from the google drive. I am using the plugin MediaElement js. The reference I got is https://www.portalzine.de/dev/html5/hosting-mp3-files-on-google-drive-html5-audio-player/ This is working in chrome, Mozilla firefox but not in IE-11, safari and opera. I want this to be play in all browsers. Please give me the suggestions.... 回答1: 1. URL for the audio file (anyone can view) https://drive.google.com/file/d/1nQklEicsMeGBnuk0vv6zkHtXtyGy10S-/view?usp=sharing 2.

How to play google drive mp3 file using html audio tag?

江枫思渺然 提交于 2021-02-15 10:12:56
问题 My aim is to play the mp3 file from the google drive. I am using the plugin MediaElement js. The reference I got is https://www.portalzine.de/dev/html5/hosting-mp3-files-on-google-drive-html5-audio-player/ This is working in chrome, Mozilla firefox but not in IE-11, safari and opera. I want this to be play in all browsers. Please give me the suggestions.... 回答1: 1. URL for the audio file (anyone can view) https://drive.google.com/file/d/1nQklEicsMeGBnuk0vv6zkHtXtyGy10S-/view?usp=sharing 2.

How to play google drive mp3 file using html audio tag?

陌路散爱 提交于 2021-02-15 10:12:27
问题 My aim is to play the mp3 file from the google drive. I am using the plugin MediaElement js. The reference I got is https://www.portalzine.de/dev/html5/hosting-mp3-files-on-google-drive-html5-audio-player/ This is working in chrome, Mozilla firefox but not in IE-11, safari and opera. I want this to be play in all browsers. Please give me the suggestions.... 回答1: 1. URL for the audio file (anyone can view) https://drive.google.com/file/d/1nQklEicsMeGBnuk0vv6zkHtXtyGy10S-/view?usp=sharing 2.

Custom Formula to look at a different GSheet

北城余情 提交于 2021-02-11 17:53:44
问题 I am still trying to wrap my head around using script, so my apologies if this is basic. I have a summary Spreadsheet that pulls values from hundreds of other documents. This used (too many) importrange formulas, but many of these are now #REF or ...Loading. I am trying to create a custom formula that will mimic the importrange function and return the values. I thought the hard part would be getting the formulas to update when another document was updated, but I have fallen right at the start

Google drive download public file without credentials

 ̄綄美尐妖づ 提交于 2021-02-11 17:01:31
问题 I'm trying to download a public google drive file without using any credentials. My code looks like: String fileId = "id_removed"; ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); Drive driveService = new Drive.Builder(GoogleNetHttpTransport.newTrustedTransport(), JacksonFactory.getDefaultInstance(), new HttpRequestInitializer() { @Override public void initialize(HttpRequest httpRequest) throws IOException { } }).setApplicationName("test app").build(); driveService.files()

Google drive download public file without credentials

て烟熏妆下的殇ゞ 提交于 2021-02-11 17:01:14
问题 I'm trying to download a public google drive file without using any credentials. My code looks like: String fileId = "id_removed"; ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); Drive driveService = new Drive.Builder(GoogleNetHttpTransport.newTrustedTransport(), JacksonFactory.getDefaultInstance(), new HttpRequestInitializer() { @Override public void initialize(HttpRequest httpRequest) throws IOException { } }).setApplicationName("test app").build(); driveService.files()

Change file name of file uploaded using Google Drive API - Apps Script

纵饮孤独 提交于 2021-02-11 15:51:57
问题 I created a script that can upload files on Google Drive Shared Drives using service account. However, I having trouble on renaming the file. I always get "Untitled" file name. This is my code: function movefiletoDrive(fileId, driveID, parentDriveId){ var body = {"title":"RJ"} var service = getDriveService(); service.reset() if (service.hasAccess()) { var url = 'https://www.googleapis.com/drive/v3/files/'+fileId+'?addParents='+driveID+'&removeParents='+parentDriveId+'&supportsTeamDrives=true'

How to access to the google sheet the short cut ist pointing at?

孤街浪徒 提交于 2021-02-11 15:41:07
问题 [![enter image description here][1]][1]I have made a shortcut (new feature of google) of a google sheets. Now I want to get all the Spreadsheets I have in a directory: these function does not work anymore to treat all the Spreadsheet: folder.getFilesByType(mimeType) because the 'new' shortcut a new mime type has been introduced. The ID of the shortcut is different from the original file. You can not access anymore over ID of the files you find in the directory. What is the solution to select