了解 Aspose.Cells Clou
Contents
[
Hide
]
欢迎学习 Aspose.Cells 云
本网站致力于帮助想要使用Aspose.Cells云API开发framework构建应用程序的开发人员。
什么是 Aspose.Cells 云 API?
一项基于 REST 的服务,用于在云端以编程方式创建、编辑、转换和分析电子表格。处理 XLS、XLSX 和 CSV 文件 via 可扩展 API,无需 Microsoft Excel 依赖项。
谁应该使用 Aspose.Cells 云 API?
开发人员构建电子表格自动化解决方案 - 从初学者到企业团队。无需安装 Excel 即可创建、编辑、转换和分析 XLSX/CSV 文件 via REST API。
如何分两步使用 Aspose.Cells Cloud API
5分钟内实现零自动化
步骤1:获取 API 凭证
第 2 步:执行您的第一个 API 呼叫
# Get access token via cURL
curl -X POST "https://api.aspose.cloud/connect/token" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "grant_type=client_credentials&client_id=YOUR_CLIENT_ID&client_secret=YOUR_CLIENT_SECRET"
# Convert XLSX to PDF via cURL
curl -v "https://api.aspose.cloud/v4.0/cells/convert/spreadsheet?format=PDF" \
-X PUT \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: multipart/form-data" \
-F "File=@input.xlsx"
使用 SDK 执行电子表格 API
# Python SDK example
from asposecellscloud.apis.cells_api import CellsApi
from asposecellscloud.models import *
from asposecellscloud.requests import *
CellsCloudClientId ='....' # get from https://dashboard.aspose.cloud/#/applications
CellsCloudClientSecret='....' # get from https://dashboard.aspose.cloud/#/applications
instance = CellsApi(CellsCloudClientId,CellsCloudClientSecret)
response = instance.convert_spreadsheet(ConvertSpreadsheetRequest( 'EmployeeSalesSummary.xlsx', 'pdf') , local_outpath = "EmployeeSalesSummary.pdf")
为什么要使用 Aspose.Cells 云 API?
企业级云服务引擎
Aspose.Cells Cloud 是一款功能强大的云服务引擎。它提供丰富的功能,帮助您创建、编辑、转换和分析电子表格。
多语言 SDK 支持
- 完整覆盖:.NET/Java/Python/Node.js/PHP/Perl
- 新兴语言:Go/Ruby
低代码:以最少的编码实现快速开发
CellsApi cellsApi = new CellsApi(Environment.GetEnvironmentVariable("CellsCloudClientId"), Environment.GetEnvironmentVariable("CellsCloudClientSecret"));
cellsApi.ConvertSpreadsheet(new ConvertSpreadsheetRequest { Spreadsheet = "EmployeeSalesSummary.xlsx", format = "pdf" }, "EmployeeSalesSummary.pdf");