How to get the spreadsheet id that is in the url. I know about using SpreadsheetApp.getActiveSpreadsheet (). GetId () and SpreadsheetApp.getActiveSpreadsheet (). GetUrl ()
But getId () / getUrl () / getKey () now does not work with Google-Drive-SDK. I can no longer use this identifier to open files using the Drive-SDK. It worked about 1 week ago, but the Drive-SDK now does not open the file.
The workaround is to use the identifier, which is in the url. Identifier after key =
https://docs.google.com/spreadsheet/ccc?key=0AkGlO9jJLGO8dHJrSE0wTEF2VXRSdGRlNVQaaVRad0E
But I want an automated way to get it, not a manual process. Since the spreadsheet is created using a template, so I have no way to find out the identifier. Thoughts, is there any way to get this?
Note 1: stackoverflow.com/questions/18583885/ states that problems with the Google Drive SDK should be sent to stackoverflow
Note 2: getUrl () and getKey () contain the same identifier as getId (), and not the key in the URL. So it looks like the key access has been removed, so I don't really hope so.
Edit
The drive code is Java, not google-apps - script. version 1.15.0-rc
Drive driveService = new Drive.Builder(TRANSPORT, JSON_FACTORY, credential).setApplicationName("CellMaster.com.au").build();
File file = driveService.files().get(this.spreadsheetKey).execute();
, - . execute(), 404. , , google script. , URL- .