Method: spreadsheets.create
Tạo một bảng tính, trả về bảng tính mới tạo.
Yêu cầu HTTP
POST https://sheets.googleapis.com/v4/spreadsheets
URL sử dụng cú pháp Chuyển mã gRPC.
Nội dung yêu cầu
Nội dung yêu cầu chứa một bản sao của Spreadsheet
.
Nội dung phản hồi
Nếu thành công, nội dung phản hồi sẽ chứa một thực thể mới tạo của Spreadsheet
.
Phạm vi uỷ quyền
Yêu cầu một trong các phạm vi OAuth sau đây:
https://www.googleapis.com/auth/drive
https://www.googleapis.com/auth/drive.file
https://www.googleapis.com/auth/spreadsheets
Để biết thêm thông tin, hãy xem bài viết Hướng dẫn uỷ quyền.
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2024-09-05 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2024-09-05 UTC."],[[["Creates a new Google Spreadsheet using the provided data."],["Sends an HTTP POST request to `https://sheets.googleapis.com/v4/spreadsheets`."],["Requires authorization with specific OAuth scopes like `https://www.googleapis.com/auth/spreadsheets` or similar."],["Returns the newly created spreadsheet data in the response."]]],["A `POST` request is sent to `https://sheets.googleapis.com/v4/spreadsheets` to create a new spreadsheet. The request body must contain a `Spreadsheet` instance. Upon success, the response body returns the newly created `Spreadsheet` instance. This action requires one of the following OAuth scopes for authorization: `drive`, `drive.file`, or `spreadsheets`. The URL follows gRPC Transcoding syntax.\n"]]