Skip to content

Commit

Permalink
fix: shared drive support added for google sheets
Browse files Browse the repository at this point in the history
  • Loading branch information
“sneha122” committed Nov 20, 2024
1 parent 7b81c3e commit ac6eade
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public WebClient.RequestHeadersSpec<?> getExecutionClient(WebClient webClient, M
UriComponentsBuilder uriBuilder = getBaseUriBuilder(
this.BASE_DRIVE_API_URL,
methodConfig.getSpreadsheetId()
+ "?fields=id,name,permissions/role,permissions/emailAddress,createdTime,modifiedTime");
+ "?supportsAllDrives=true&fields=id,name,permissions/role,permissions/emailAddress,createdTime,modifiedTime");

return webClient
.method(HttpMethod.GET)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public boolean validateExecutionMethodRequest(MethodConfig methodConfig) {
public WebClient.RequestHeadersSpec<?> getExecutionClient(WebClient webClient, MethodConfig methodConfig) {
UriComponentsBuilder uriBuilder = getBaseUriBuilder(
this.BASE_DRIVE_API_URL,
"?orderBy=name&q=mimeType%3D'application%2Fvnd.google-apps.spreadsheet'%20and%20trashed%3Dfalse",
"?includeItemsFromAllDrives=true&supportsAllDrives=true&orderBy=name&q=mimeType%3D'application%2Fvnd.google-apps.spreadsheet'%20and%20trashed%3Dfalse",
true);

return webClient
Expand Down

0 comments on commit ac6eade

Please sign in to comment.