ExcelTemplates

Nội dung tệp mẫu dạng base64 cho Office.js (Excel insertWorksheetsFromBase64 / createWorkbook, Word insertFileFromBase64 / createDocument, PowerPoint insertSlidesFromBase64 / createPresentation)

Changed on

Yêu cầu xem được mẫu, đã đăng nhập và đủ hạng thành viên (hoặc là chủ sở hữu / admin). Kèm fileFormat (xlsx, xltx, docx, dotx, pptx, potx), app và contentType (MIME) của tệp. Không tự ghi nhận sử dụng - add-in gọi POST .../usages sau khi chèn / mở mẫu.

get/excel/templates/{templateId}/content

Request

Path parameters

templateIdinteger required

ID mẫu

Query parameters

tokenstring

Token link chia sẻ (tùy chọn)

Response

Thành công

templateIdinteger

ID mẫu

versioninteger

Phiên bản tệp

fileNamestring

Tên tệp gốc khi tải lên

fileFormatstring

Định dạng tệp = đuôi tệp: xlsx, xltx, docx, dotx, pptx, potx

appstring

Ứng dụng của mẫu: excel | word | powerpoint

contentTypestring

MIME type của tệp (theo fileFormat)

fileSizeinteger

Kích thước (byte)

fileHashstring

SHA-256 (hex chữ thường) của tệp - client dùng để cache theo phiên bản

contentBase64string

Nội dung tệp mã hóa base64

Changes