Boş bir Excel çalışma kutusu oluşturun Bu REST API, bir empty workbook
oluşturulacağını belirtir.
Sorgu Parametresi
Parametre adı
Tip
Tanım
şablonDosyası
sicim
veri dosyası
sicim
isWriteOver
sicim
doğru yanlış
dosya
sicim
Orijinal çalışma kitabı klasörü.
depolamaAdı
sicim
Depolama adı.
Gövde Parametresini Talep Et
Parametre adı
Tip
Tanım
veri
dosya
DİNLENME API
API
Tip
Tanım
Kaynak Bağlantısı
/hücreler/{isim}
KOYMAK
Boş bir Çalışma Kitabı Oluşturun
PutWorkbookCreate
OpenAPI Spesifikasyonu herkese açık bir programlama arayüzü tanımlar ve REST etkileşimlerini doğrudan bir web tarayıcısından gerçekleştirmenize olanak tanır.
KullanabilirsinizcURL Aspose.Cells web hizmetlerine kolayca erişmek için komut satırı aracı. Aşağıdaki örnekte, cURL ile Cloud API’e nasıl çağrı yapılacağı gösterilmektedir.
Request
Copy
curl - X PUT "https://api.aspose.cloud/v3.0/cells/newworkbook.xlsx?isWriteOver=false" - H "accept: application/json" - H "x-aspose-client: Containerize.Swagger"
Response
Copy
{
"Status" : "string" ,
"Workbook" : {
"FileName" : "string" ,
"Links" : [
{
"Href" : "string" ,
"Rel" : "string" ,
"Title" : "string" ,
"Type" : "string"
}
],
"Worksheets" : {
"link" : {
"Href" : "string" ,
"Rel" : "string" ,
"Title" : "string" ,
"Type" : "string"
}
},
"DefaultStyle" : {
"link" : {
"Href" : "string" ,
"Rel" : "string" ,
"Title" : "string" ,
"Type" : "string"
}
},
"DocumentProperties" : {
"link" : {
"Href" : "string" ,
"Rel" : "string" ,
"Title" : "string" ,
"Type" : "string"
}
},
"Names" : {
"link" : {
"Href" : "string" ,
"Rel" : "string" ,
"Title" : "string" ,
"Type" : "string"
}
},
"Settings" : {
"link" : {
"Href" : "string" ,
"Rel" : "string" ,
"Title" : "string" ,
"Type" : "string"
}
},
"IsWriteProtected" : "string" ,
"IsProtected" : "string" ,
"IsEncryption" : "string" ,
"Password" : "string"
}
}
Bulut SDK Ailesi
SDK kullanmak, geliştirmeyi hızlandırmanın en iyi yoludur. Bir SDK, düşük düzeyli ayrıntılarla ilgilenir ve proje görevlerinize odaklanmanıza olanak tanır. Lütfen şuraya göz atın:GitHub deposu Aspose.Cells Bulut SDK’larının tam listesi için.
Aşağıdaki kod örnekleri, çeşitli SDK’ları kullanarak Aspose.Cells web hizmetlerine nasıl çağrı yapılacağını gösterir:
C#
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-cells-cloud/aspose-cells-cloud-dotnet/
namespace Aspose.Cells.Cloud.SDK.Example
{
using Aspose.Cells.Cloud.SDK.Api;
using Aspose.Cells.Cloud.SDK.Request;
using System;
public partial class CellsApiExample
{
public void PutWorkbookCreateExample()
{
CellsApi cellsApi = new CellsApi(Environment.GetEnvironmentVariable("CellsCloudTestClientId"), Environment.GetEnvironmentVariable("CellsCloudTestClientSecret"));
PutWorkbookCreateRequest request = new PutWorkbookCreateRequest { name = "Book1.xlsx", folder = "TestData/In" };
cellsApi.PutWorkbookCreate(request);
}
}
}
// Obsolete
//CellsWorkbookApi instance = new CellsWorkbookApi(GetConfiguration());
//string name = "NewBook" + DateTime.Now.ToString("yymmddhhmiss") + ".xlsx";
//string templateFile = "Book1.xlsx";
//string dataFile = "ReportData.xml";
//string folder = null;
//UpdateDataFile(folder, templateFile);
//UpdateDataFile(folder, dataFile);
//var response = instance.CellsWorkbookPutWorkbookCreate(name, folder + "/" + templateFile, folder + "/" + dataFile, folder);
Java
Perl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For complete examples and data files, please go to https://github.com/aspose-cells-cloud/aspose-cells-cloud-perl/
use strict;
use warnings;
use utf8;
use File::Slurp;
use MIME::Base64;
use AsposeCellsCloud::CellsApi;
my $config = AsposeCellsCloud::Configuration->new( client_id => $ENV{'ProductClientId'}, client_secret => $ENV{'ProductClientSecret'});
my $instance = AsposeCellsCloud::CellsApi->new(AsposeCellsCloud::ApiClient->new( $config));
my $remoteFolder = 'TestData/In';
my $reportDataXML = 'ReportData.xml';
my $remoteName = 'Book1.xlsx';
my $request = AsposeCellsCloud::Request::PutWorkbookCreateRequest->new();
$request->{name} = 'PutWorkbookCreate.xlsx';
$request->{template_file} = $remoteFolder . '/' . $remoteName;
$request->{data_file} = $remoteFolder . '/ReportData.xml';
$request->{is_write_over} = 'true';
$request->{folder} = $remoteFolder;
$request->{storage_name} = '';
$request->{check_excel_restriction} = 'true';
my $result = $api->put_workbook_create(request=> $request);
Go
Swift