use of com.google.api.services.sheets.v4.model.AddSheetRequest in project collect by opendatakit.
the class SheetsHelper method addSheet.
public void addSheet(String spreadsheetId, String sheetName) throws IOException {
AddSheetRequest addSheetRequest = new AddSheetRequest();
addSheetRequest.setProperties(new SheetProperties().setTitle(sheetName));
Request request = new Request();
request.setAddSheet(addSheetRequest);
sheetsService.batchUpdate(spreadsheetId, Collections.singletonList(request));
}
Aggregations