Unable to add text to new Google Doc via Docs API
问题 My program is creating documents and each document has text that needs to go into it. Any attempt to call an InsertTextRequest invokes an error. List<Request> requests = new ArrayList<>(); requests.add(new Request().setInsertText(new InsertTextRequest() .setText("Simple test.") .setLocation(new Location().setIndex(0)))); BatchUpdateDocumentRequest body = new BatchUpdateDocumentRequest() .setRequests(requests); BatchUpdateDocumentResponse response = docService.documents() .batchUpdate(file