---
title: "Esporta la cartella di lavoro in SQL dal foglio di calcolo utilizzando Swift API"
description: "Aspose.Cells Cloud REST API supporta l'esportazione di file in formato {0} in {1} utilizzando {2}."

---

# Esporta la cartella di lavoro in SQL dal foglio di calcolo utilizzando Swift API


> Aspose.Cells Cloud REST API supporta l'esportazione di file in formato {0} in {1} utilizzando {2}.





















































.progLangContainer {
padding-right: calc(var(--bs-gutter-x)*.1);
padding-left: calc(var(--bs-gutter-x)*.1)
}
.progLangContainer {
padding-right: calc(var(--bs-gutter-x)*.1);
padding-left: calc(var(--bs-gutter-x)*.1);
margin: 5px;
margin-right: 20px;
}
.progLangPlace .progLangContainer .progLang {
color: #fff;
text-decoration: none;
height: 75px;
width: 75px;
text-align: center;
line-height: 65px;
border-radius: 100%;
font-size: 14px;
font-weight: 700;
border: 5px solid #e5e5e5;
box-shadow: 0 15px 8px -5px #666;
display: inline-block;
direction: ltr !important;
margin-bottom: 15px
}
.progLangPlace .progLangContainer .progLang:hover {
border: 7px solid #e5e5e5;
box-shadow: none
}
.progLangPlace .progLangContainer .bigFont {
font-size: 16px !important;
}
.progLangPlace .progLangContainer .selected {
border: 0 solid #e5e5e5;
box-shadow: 0 10px 8px -5px #666, inset 0 0 0 2px #063c72, inset 0 0 0 5px #fff;
cursor: initial !important;
pointer-events: none
}
.progLang:hover {
border: 7px solid #e5e5e5;
box-shadow: none
}
.progLang {
color: #fff;
text-decoration: none;
height: 75px;
width: 75px;
text-align: center;
line-height: 65px;
border-radius: 100%;
font-size: 14px;
font-weight: 700;
border: 5px solid #e5e5e5;
box-shadow: 0 15px 8px -5px #666;
display: inline-block;
direction: ltr !important;
margin-bottom: 15px
}
.pythonColor {
background: #4a59ce !important;
}
.javaColor {
background: #a499f2 !important;
}
.csColor {
background: #42dbb0 !important;
}
.cppColor {
background: #008594 !important;
}
.phpColor {
background: #ca75d7 !important;
}
.rubyColor {
background: #09e !important;
}
.nodeColor {
background: #519e8a !important;
}
.swiftColor {
background: #a2d270 !important;
}
.goColor {
background: #48d9ee !important;
}
.perlColor {
background: #5c9fea !important;
}
.curlColor {
background: #aeae61 !important;
}
.cellsp {
display: block;
color: #fff;
margin-block-start: 1em;
margin-block-end: 1em;
margin-inline-start: 0px;
margin-inline-end: 0px;
}
.cellsh2, .cellsh1 {
margin-top: 0 !important;
margin-bottom: .5rem !important;
font-weight: 500 !important;
line-height: 1.2 !important;
}
@media (max-width: 868px){
.pf-landing-page-com .header1.minify-header .cellsrow {
display: flex!important;
align-items: center!important;
flex-flow: unset!important;
}
.data-nosnippet{
display:none;
}
.pt-5, .py-5{
padding-top:0px !important;
}
.col-lg-12 .pt-5 .cellsh2{
font-size:18px !important;
margin-top:10px !important;
margin-bottom:10px !important;
}
}
# Swift API per esportare la cartella di lavoro in un file SQL
## Libreria Swift per esportare la cartella di lavoro in un file SQL
Utilizzare Cells Esporta REST API per esportare flussi di lavoro di oggetti interni del foglio di calcolo in Swift. Questa è una soluzione professionale per esportare la cartella di lavoro in un file in formato SQL da un foglio di calcolo online utilizzando Swift.
[C#](/cells/net/export/workbook-to-sql/)
[Java](/cells/java/export/workbook-to-sql/)
[Python](/cells/python/export/workbook-to-sql/)
[PHP](/cells/php/export/workbook-to-sql/)
[Go](/cells/go/export/workbook-to-sql/)
[Node](/cells/nodejs/export/workbook-to-sql/)
[Ruby](/cells/ruby/export/workbook-to-sql/)
[Perl](/cells/perl/export/workbook-to-sql/)
.cells_bg_white {
}
@media (max-width: 868px){
.pf-landing-page-com .productfamilypage h2{
font-size:16px !important;
text-align:center !important;
}
.section-layout .heading-border{
font-size:20px !important;
}
}
@media (min-width:1200px){
.section-layout{
width:1170px;margin:0 auto;
line-height:28px;
}
}
## Esporta l\'oggetto WORKBOOK in un file in formato SQL in Swift
.panelContainer {
width: 100%;
}
.cells-cloud-input-group {
display: flex;
margin: 15px auto 0;
border: 1px solid #eee;
border-radius: 10px;
background-color: #ffffff;
align-items: center;
justify-content: space-between
}
.cells-cloud-input-group-main {
flex-grow: 1;
display: inline-block;
padding: 0 4px;
color: #333;
display: inline-block;
}
.cells-cloud-input-group-prepend {
display: inline-block;
height: 52px;
border-radius: 10px 0 0 10px;
padding: 0 20px;
background-color: #e3e3e8;
color: #333;
line-height: 50px
}
.cells-cloud-input-group-method {
float: left;
padding-right: 4px;
color: #ccc;
}
.cells-cloud-input-group-main {
display: inline-block
}
.cells-cloud-input-group-append {
float: right;
}
.cells-cloud-link-button {
display: inline-block;
border: 1px solid transparent;
border-left: 1px solid #e3e3e8;
border-radius: 10px 10px 10px 10px;
padding: 0 20px;
outline: none;
box-shadow: none;
background-color: #1a89d0;
text-align: center;
vertical-align: middle;
color: #151617;
line-height: 20px;
font-size: 1rem;
font-weight: 400;
}
.cells-api-text{
text-align: center;
vertical-align: middle;
color: #151617;
line-height: 50px;
font-size: 1rem;
margin: 0 auto;
width: fit-content;
font-weight: 400;
}
.cells-cloud-action-button {
display: inline-block;
width: 100%;
border: 1px solid transparent;
border-left: 1px solid #e3e3e8;
border-radius: 10px 10px 10px 10px;
padding: 0 20px;
outline: none;
box-shadow: none;
text-align: center;
vertical-align: middle;
line-height: 50px;
font-size: 1rem;
margin: 0 auto;
width: fit-content;
font-weight: 400;
}
@media (max-width: 868px){
.cells-cloud-input-group-prepend,.cells-cloud-input-group-method{
display:none !important;
}
.cells-cloud-input-group-main{
padding:0px !important;
}
.spanclass{
float: left;
width: 70%;
overflow: hidden;
}
}
API 
POST 
https://api.aspose.cloud/v3.0/cells/export
Try it 
Esportare un oggetto WORKBOOK in un file SQL da un foglio di calcolo è un'attività complessa. L'esportazione di WORKBOOK in transizioni in formato SQL viene eseguita dal nostro SDK Swift mantenendo il contenuto strutturale e logico principale del foglio di calcolo WORKBOOK di origine. La nostra libreria Swift è una soluzione professionale per esportare oggetti WORKBOOK in file in formato SQL online. Questo Cloud SDK offre agli sviluppatori Swift funzionalità potenti e output SQL perfetto.
### Esempio di codice in Swift utilizzando REST API per esportare WORKBOOK in formato SQL dal foglio di calcolo
```
// For complete examples and data files, please go to https://github.com/aspose-cells-cloud/aspose-cells-cloud-swift/
import AsposeCellsCloud
let expectation1 = self.expectation(description: &#34;checkAuth&#34;)
AsposeCellsCloudAPI.clientId = &#34;xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&#34;
AsposeCellsCloudAPI.clientSecret = &#34;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&#34;
AuthAspose.checkAuth()
{
(authError) in
guard authError == nil else {
XCTFail(&#34;error checkAuth&#34;)
return
}
expectation1.fulfill()
}
self.waitForExpectations(timeout: testTimeout, handler: nil)
let expectation = self.expectation(description: &#34;testpostExport_Workbook&#34;)
let objectType:String = &#34;workbook&#34;
let format:String = &#34;sql&#34;
var files = DictionaryString, URL>()
files[BOOK1] = getURL(BOOK1)
files[MYDOC] = getURL(MYDOC) 
LiteCellsAPI.postExport(files: files, objectType: objectType, format: format)
{
(response, error) in
guard error == nil else {
XCTFail(&#34;error testpostExport_Workbook&#34;)
return
} 
if let response = response {
XCTAssertTrue(response is FilesResult)
expectation.fulfill()
}
}
self.waitForExpectations(timeout: testTimeout, handler: nil)
```
console.log("\u003cdiv class=\u0022highlight\u0022\u003e\u003cpre tabindex=\u00220\u0022 style=\u0022background-color:#f0f3f3;-moz-tab-size:4;-o-tab-size:4;tab-size:4;\u0022\u003e\u003ccode class=\u0022language-swift\u0022 data-lang=\u0022swift\u0022\u003e\u003cspan style=\u0022display:flex;\u0022\u003e\u003cspan\u003e \u003cspan style=\u0022color:#09f;font-style:italic\u0022\u003e\/\/ For complete examples and data files, please go to https:\/\/github.com\/aspose-cells-cloud\/aspose-cells-cloud-swift\/\u003c\/span\u003e\n\u003c\/span\u003e\u003c\/span\u003e\u003cspan style=\u0022display:flex;\u0022\u003e\u003cspan\u003e \u003cspan style=\u0022color:#069;font-weight:bold\u0022\u003eimport\u003c\/span\u003e \u003cspan style=\u0022color:#0a8;font-weight:bold\u0022\u003eAsposeCellsCloud\u003c\/span\u003e\n\u003c\/span\u003e\u003c\/span\u003e\u003cspan style=\u0022display:flex;\u0022\u003e\u003cspan\u003e \u003cspan style=\u0022color:#069;font-weight:bold\u0022\u003elet\u003c\/span\u003e \u003cspan style=\u0022color:#033\u0022\u003eexpectation1\u003c\/span\u003e = \u003cspan style=\u0022color:#069;font-weight:bold\u0022\u003eself\u003c\/span\u003e.expectation(description: \u003cspan style=\u0022color:#c30\u0022\u003e\u0026#34;checkAuth\u0026#34;\u003c\/span\u003e)\n\u003c\/span\u003e\u003c\/span\u003e\u003cspan style=\u0022display:flex;\u0022\u003e\u003cspan\u003e AsposeCellsCloudAPI.clientId = \u003cspan style=\u0022color:#c30\u0022\u003e\u0026#34;xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\u0026#34;\u003c\/span\u003e\n\u003c\/span\u003e\u003c\/span\u003e\u003cspan style=\u0022display:flex;\u0022\u003e\u003cspan\u003e AsposeCellsCloudAPI.clientSecret = \u003cspan style=\u0022color:#c30\u0022\u003e\u0026#34;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\u0026#34;\u003c\/span\u003e\n\u003c\/span\u003e\u003c\/span\u003e\u003cspan style=\u0022display:flex;\u0022\u003e\u003cspan\u003e AuthAspose.checkAuth()\n\u003c\/span\u003e\u003c\/span\u003e\u003cspan style=\u0022display:flex;\u0022\u003e\u003cspan\u003e {\n\u003c\/span\u003e\u003c\/span\u003e\u003cspan style=\u0022display:flex;\u0022\u003e\u003cspan\u003e (authError) \u003cspan style=\u0022color:#069;font-weight:bold\u0022\u003ein\u003c\/span\u003e\n\u003c\/span\u003e\u003c\/span\u003e\u003cspan style=\u0022display:flex;\u0022\u003e\u003cspan\u003e \u003cspan style=\u0022color:#069;font-weight:bold\u0022\u003eguard\u003c\/span\u003e authError == \u003cspan style=\u0022color:#069;font-weight:bold\u0022\u003enil\u003c\/span\u003e \u003cspan style=\u0022color:#069;font-weight:bold\u0022\u003eelse\u003c\/span\u003e {\n\u003c\/span\u003e\u003c\/span\u003e\u003cspan style=\u0022display:flex;\u0022\u003e\u003cspan\u003e XCTFail(\u003cspan style=\u0022color:#c30\u0022\u003e\u0026#34;error checkAuth\u0026#34;\u003c\/span\u003e)\n\u003c\/span\u003e\u003c\/span\u003e\u003cspan style=\u0022display:flex;\u0022\u003e\u003cspan\u003e \u003cspan style=\u0022color:#069;font-weight:bold\u0022\u003ereturn\u003c\/span\u003e\n\u003c\/span\u003e\u003c\/span\u003e\u003cspan style=\u0022display:flex;\u0022\u003e\u003cspan\u003e }\n\u003c\/span\u003e\u003c\/span\u003e\u003cspan style=\u0022display:flex;\u0022\u003e\u003cspan\u003e expectation1.fulfill()\n\u003c\/span\u003e\u003c\/span\u003e\u003cspan style=\u0022display:flex;\u0022\u003e\u003cspan\u003e }\n\u003c\/span\u003e\u003c\/span\u003e\u003cspan style=\u0022display:flex;\u0022\u003e\u003cspan\u003e \u003cspan style=\u0022color:#069;font-weight:bold\u0022\u003eself\u003c\/span\u003e.waitForExpectations(timeout: testTimeout, handler: \u003cspan style=\u0022color:#069;font-weight:bold\u0022\u003enil\u003c\/span\u003e)\n\u003c\/span\u003e\u003c\/span\u003e\u003cspan style=\u0022display:flex;\u0022\u003e\u003cspan\u003e \u003cspan style=\u0022color:#069;font-weight:bold\u0022\u003elet\u003c\/span\u003e \u003cspan style=\u0022color:#033\u0022\u003eexpectation\u003c\/span\u003e = \u003cspan style=\u0022color:#069;font-weight:bold\u0022\u003eself\u003c\/span\u003e.expectation(description: \u003cspan style=\u0022color:#c30\u0022\u003e\u0026#34;testpostExport_Workbook\u0026#34;\u003c\/span\u003e)\n\u003c\/span\u003e\u003c\/span\u003e\u003cspan style=\u0022display:flex;\u0022\u003e\u003cspan\u003e \u003cspan style=\u0022color:#069;font-weight:bold\u0022\u003elet\u003c\/span\u003e \u003cspan style=\u0022color:#033\u0022\u003eobjectType\u003c\/span\u003e:\u003cspan style=\u0022color:#366\u0022\u003eString\u003c\/span\u003e = \u003cspan style=\u0022color:#c30\u0022\u003e\u0026#34;workbook\u0026#34;\u003c\/span\u003e\n\u003c\/span\u003e\u003c\/span\u003e\u003cspan style=\u0022display:flex;\u0022\u003e\u003cspan\u003e \u003cspan style=\u0022color:#069;font-weight:bold\u0022\u003elet\u003c\/span\u003e \u003cspan style=\u0022color:#033\u0022\u003eformat\u003c\/span\u003e:\u003cspan style=\u0022color:#366\u0022\u003eString\u003c\/span\u003e = \u003cspan style=\u0022color:#c30\u0022\u003e\u0026#34;sql\u0026#34;\u003c\/span\u003e\n\u003c\/span\u003e\u003c\/span\u003e\u003cspan style=\u0022display:flex;\u0022\u003e\u003cspan\u003e \u003cspan style=\u0022color:#069;font-weight:bold\u0022\u003evar\u003c\/span\u003e \u003cspan style=\u0022color:#033\u0022\u003efiles\u003c\/span\u003e = \u003cspan style=\u0022color:#366\u0022\u003eDictionary\u003c\/span\u003e\u0026lt;\u003cspan style=\u0022color:#366\u0022\u003eString\u003c\/span\u003e, URL\u0026gt;()\n\u003c\/span\u003e\u003c\/span\u003e\u003cspan style=\u0022display:flex;\u0022\u003e\u003cspan\u003e files[BOOK1] = getURL(BOOK1)\n\u003c\/span\u003e\u003c\/span\u003e\u003cspan style=\u0022display:flex;\u0022\u003e\u003cspan\u003e files[MYDOC] = getURL(MYDOC) \n\u003c\/span\u003e\u003c\/span\u003e\u003cspan style=\u0022display:flex;\u0022\u003e\u003cspan\u003e LiteCellsAPI.postExport(files: files, objectType: objectType, format: format)\n\u003c\/span\u003e\u003c\/span\u003e\u003cspan style=\u0022display:flex;\u0022\u003e\u003cspan\u003e {\n\u003c\/span\u003e\u003c\/span\u003e\u003cspan style=\u0022display:flex;\u0022\u003e\u003cspan\u003e (response, error) \u003cspan style=\u0022color:#069;font-weight:bold\u0022\u003ein\u003c\/span\u003e\n\u003c\/span\u003e\u003c\/span\u003e\u003cspan style=\u0022display:flex;\u0022\u003e\u003cspan\u003e \u003cspan style=\u0022color:#069;font-weight:bold\u0022\u003eguard\u003c\/span\u003e error == \u003cspan style=\u0022color:#069;font-weight:bold\u0022\u003enil\u003c\/span\u003e \u003cspan style=\u0022color:#069;font-weight:bold\u0022\u003eelse\u003c\/span\u003e {\n\u003c\/span\u003e\u003c\/span\u003e\u003cspan style=\u0022display:flex;\u0022\u003e\u003cspan\u003e XCTFail(\u003cspan style=\u0022color:#c30\u0022\u003e\u0026#34;error testpostExport_Workbook\u0026#34;\u003c\/span\u003e)\n\u003c\/span\u003e\u003c\/span\u003e\u003cspan style=\u0022display:flex;\u0022\u003e\u003cspan\u003e \u003cspan style=\u0022color:#069;font-weight:bold\u0022\u003ereturn\u003c\/span\u003e\n\u003c\/span\u003e\u003c\/span\u003e\u003cspan style=\u0022display:flex;\u0022\u003e\u003cspan\u003e } \n\u003c\/span\u003e\u003c\/span\u003e\u003cspan style=\u0022display:flex;\u0022\u003e\u003cspan\u003e \u003cspan style=\u0022color:#069;font-weight:bold\u0022\u003eif\u003c\/span\u003e \u003cspan style=\u0022color:#069;font-weight:bold\u0022\u003elet\u003c\/span\u003e \u003cspan style=\u0022color:#033\u0022\u003eresponse\u003c\/span\u003e = response {\n\u003c\/span\u003e\u003c\/span\u003e\u003cspan style=\u0022display:flex;\u0022\u003e\u003cspan\u003e XCTAssertTrue(response \u003cspan style=\u0022color:#069;font-weight:bold\u0022\u003eis\u003c\/span\u003e FilesResult)\n\u003c\/span\u003e\u003c\/span\u003e\u003cspan style=\u0022display:flex;\u0022\u003e\u003cspan\u003e expectation.fulfill()\n\u003c\/span\u003e\u003c\/span\u003e\u003cspan style=\u0022display:flex;\u0022\u003e\u003cspan\u003e }\n\u003c\/span\u003e\u003c\/span\u003e\u003cspan style=\u0022display:flex;\u0022\u003e\u003cspan\u003e }\n\u003c\/span\u003e\u003c\/span\u003e\u003cspan style=\u0022display:flex;\u0022\u003e\u003cspan\u003e \u003cspan style=\u0022color:#069;font-weight:bold\u0022\u003eself\u003c\/span\u003e.waitForExpectations(timeout: testTimeout, handler: \u003cspan style=\u0022color:#069;font-weight:bold\u0022\u003enil\u003c\/span\u003e)\n\u003c\/span\u003e\u003c\/span\u003e\u003c\/code\u003e\u003c\/pre\u003e\u003c\/div\u003e")
var codeconent = document.getElementById('code-convert');
codeconent.innerHTML = "\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" style=\"background-color:#f0f3f3;-moz-tab-size:4;-o-tab-size:4;tab-size:4;\"\u003e\u003ccode class=\"language-swift\" data-lang=\"swift\"\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e \u003cspan style=\"color:#09f;font-style:italic\"\u003e// For complete examples and data files, please go to https://github.com/aspose-cells-cloud/aspose-cells-cloud-swift/\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e \u003cspan style=\"color:#069;font-weight:bold\"\u003eimport\u003c/span\u003e \u003cspan style=\"color:#0a8;font-weight:bold\"\u003eAsposeCellsCloud\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e \u003cspan style=\"color:#069;font-weight:bold\"\u003elet\u003c/span\u003e \u003cspan style=\"color:#033\"\u003eexpectation1\u003c/span\u003e = \u003cspan style=\"color:#069;font-weight:bold\"\u003eself\u003c/span\u003e.expectation(description: \u003cspan style=\"color:#c30\"\u003e\u0026#34;checkAuth\u0026#34;\u003c/span\u003e)\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e AsposeCellsCloudAPI.clientId = \u003cspan style=\"color:#c30\"\u003e\u0026#34;xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\u0026#34;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e AsposeCellsCloudAPI.clientSecret = \u003cspan style=\"color:#c30\"\u003e\u0026#34;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\u0026#34;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e AuthAspose.checkAuth()\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e {\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e (authError) \u003cspan style=\"color:#069;font-weight:bold\"\u003ein\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e \u003cspan style=\"color:#069;font-weight:bold\"\u003eguard\u003c/span\u003e authError == \u003cspan style=\"color:#069;font-weight:bold\"\u003enil\u003c/span\u003e \u003cspan style=\"color:#069;font-weight:bold\"\u003eelse\u003c/span\u003e {\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e XCTFail(\u003cspan style=\"color:#c30\"\u003e\u0026#34;error checkAuth\u0026#34;\u003c/span\u003e)\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e \u003cspan style=\"color:#069;font-weight:bold\"\u003ereturn\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e }\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e expectation1.fulfill()\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e }\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e \u003cspan style=\"color:#069;font-weight:bold\"\u003eself\u003c/span\u003e.waitForExpectations(timeout: testTimeout, handler: \u003cspan style=\"color:#069;font-weight:bold\"\u003enil\u003c/span\u003e)\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e \u003cspan style=\"color:#069;font-weight:bold\"\u003elet\u003c/span\u003e \u003cspan style=\"color:#033\"\u003eexpectation\u003c/span\u003e = \u003cspan style=\"color:#069;font-weight:bold\"\u003eself\u003c/span\u003e.expectation(description: \u003cspan style=\"color:#c30\"\u003e\u0026#34;testpostExport_Workbook\u0026#34;\u003c/span\u003e)\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e \u003cspan style=\"color:#069;font-weight:bold\"\u003elet\u003c/span\u003e \u003cspan style=\"color:#033\"\u003eobjectType\u003c/span\u003e:\u003cspan style=\"color:#366\"\u003eString\u003c/span\u003e = \u003cspan style=\"color:#c30\"\u003e\u0026#34;workbook\u0026#34;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e \u003cspan style=\"color:#069;font-weight:bold\"\u003elet\u003c/span\u003e \u003cspan style=\"color:#033\"\u003eformat\u003c/span\u003e:\u003cspan style=\"color:#366\"\u003eString\u003c/span\u003e = \u003cspan style=\"color:#c30\"\u003e\u0026#34;sql\u0026#34;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e \u003cspan style=\"color:#069;font-weight:bold\"\u003evar\u003c/span\u003e \u003cspan style=\"color:#033\"\u003efiles\u003c/span\u003e = \u003cspan style=\"color:#366\"\u003eDictionary\u003c/span\u003e\u0026lt;\u003cspan style=\"color:#366\"\u003eString\u003c/span\u003e, URL\u0026gt;()\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e files[BOOK1] = getURL(BOOK1)\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e files[MYDOC] = getURL(MYDOC) \n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e LiteCellsAPI.postExport(files: files, objectType: objectType, format: format)\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e {\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e (response, error) \u003cspan style=\"color:#069;font-weight:bold\"\u003ein\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e \u003cspan style=\"color:#069;font-weight:bold\"\u003eguard\u003c/span\u003e error == \u003cspan style=\"color:#069;font-weight:bold\"\u003enil\u003c/span\u003e \u003cspan style=\"color:#069;font-weight:bold\"\u003eelse\u003c/span\u003e {\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e XCTFail(\u003cspan style=\"color:#c30\"\u003e\u0026#34;error testpostExport_Workbook\u0026#34;\u003c/span\u003e)\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e \u003cspan style=\"color:#069;font-weight:bold\"\u003ereturn\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e } \n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e \u003cspan style=\"color:#069;font-weight:bold\"\u003eif\u003c/span\u003e \u003cspan style=\"color:#069;font-weight:bold\"\u003elet\u003c/span\u003e \u003cspan style=\"color:#033\"\u003eresponse\u003c/span\u003e = response {\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e XCTAssertTrue(response \u003cspan style=\"color:#069;font-weight:bold\"\u003eis\u003c/span\u003e FilesResult)\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e expectation.fulfill()\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e }\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e }\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e \u003cspan style=\"color:#069;font-weight:bold\"\u003eself\u003c/span\u003e.waitForExpectations(timeout: testTimeout, handler: \u003cspan style=\"color:#069;font-weight:bold\"\u003enil\u003c/span\u003e)\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e";
const originalContent = "\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" style=\"background-color:#f0f3f3;-moz-tab-size:4;-o-tab-size:4;tab-size:4;\"\u003e\u003ccode class=\"language-swift\" data-lang=\"swift\"\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e \u003cspan style=\"color:#09f;font-style:italic\"\u003e// For complete examples and data files, please go to https://github.com/aspose-cells-cloud/aspose-cells-cloud-swift/\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e \u003cspan style=\"color:#069;font-weight:bold\"\u003eimport\u003c/span\u003e \u003cspan style=\"color:#0a8;font-weight:bold\"\u003eAsposeCellsCloud\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e \u003cspan style=\"color:#069;font-weight:bold\"\u003elet\u003c/span\u003e \u003cspan style=\"color:#033\"\u003eexpectation1\u003c/span\u003e = \u003cspan style=\"color:#069;font-weight:bold\"\u003eself\u003c/span\u003e.expectation(description: \u003cspan style=\"color:#c30\"\u003e\u0026#34;checkAuth\u0026#34;\u003c/span\u003e)\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e AsposeCellsCloudAPI.clientId = \u003cspan style=\"color:#c30\"\u003e\u0026#34;xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\u0026#34;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e AsposeCellsCloudAPI.clientSecret = \u003cspan style=\"color:#c30\"\u003e\u0026#34;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\u0026#34;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e AuthAspose.checkAuth()\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e {\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e (authError) \u003cspan style=\"color:#069;font-weight:bold\"\u003ein\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e \u003cspan style=\"color:#069;font-weight:bold\"\u003eguard\u003c/span\u003e authError == \u003cspan style=\"color:#069;font-weight:bold\"\u003enil\u003c/span\u003e \u003cspan style=\"color:#069;font-weight:bold\"\u003eelse\u003c/span\u003e {\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e XCTFail(\u003cspan style=\"color:#c30\"\u003e\u0026#34;error checkAuth\u0026#34;\u003c/span\u003e)\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e \u003cspan style=\"color:#069;font-weight:bold\"\u003ereturn\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e }\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e expectation1.fulfill()\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e }\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e \u003cspan style=\"color:#069;font-weight:bold\"\u003eself\u003c/span\u003e.waitForExpectations(timeout: testTimeout, handler: \u003cspan style=\"color:#069;font-weight:bold\"\u003enil\u003c/span\u003e)\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e \u003cspan style=\"color:#069;font-weight:bold\"\u003elet\u003c/span\u003e \u003cspan style=\"color:#033\"\u003eexpectation\u003c/span\u003e = \u003cspan style=\"color:#069;font-weight:bold\"\u003eself\u003c/span\u003e.expectation(description: \u003cspan style=\"color:#c30\"\u003e\u0026#34;testpostExport_Workbook\u0026#34;\u003c/span\u003e)\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e \u003cspan style=\"color:#069;font-weight:bold\"\u003elet\u003c/span\u003e \u003cspan style=\"color:#033\"\u003eobjectType\u003c/span\u003e:\u003cspan style=\"color:#366\"\u003eString\u003c/span\u003e = \u003cspan style=\"color:#c30\"\u003e\u0026#34;workbook\u0026#34;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e \u003cspan style=\"color:#069;font-weight:bold\"\u003elet\u003c/span\u003e \u003cspan style=\"color:#033\"\u003eformat\u003c/span\u003e:\u003cspan style=\"color:#366\"\u003eString\u003c/span\u003e = \u003cspan style=\"color:#c30\"\u003e\u0026#34;sql\u0026#34;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e \u003cspan style=\"color:#069;font-weight:bold\"\u003evar\u003c/span\u003e \u003cspan style=\"color:#033\"\u003efiles\u003c/span\u003e = \u003cspan style=\"color:#366\"\u003eDictionary\u003c/span\u003e\u0026lt;\u003cspan style=\"color:#366\"\u003eString\u003c/span\u003e, URL\u0026gt;()\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e files[BOOK1] = getURL(BOOK1)\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e files[MYDOC] = getURL(MYDOC) \n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e LiteCellsAPI.postExport(files: files, objectType: objectType, format: format)\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e {\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e (response, error) \u003cspan style=\"color:#069;font-weight:bold\"\u003ein\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e \u003cspan style=\"color:#069;font-weight:bold\"\u003eguard\u003c/span\u003e error == \u003cspan style=\"color:#069;font-weight:bold\"\u003enil\u003c/span\u003e \u003cspan style=\"color:#069;font-weight:bold\"\u003eelse\u003c/span\u003e {\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e XCTFail(\u003cspan style=\"color:#c30\"\u003e\u0026#34;error testpostExport_Workbook\u0026#34;\u003c/span\u003e)\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e \u003cspan style=\"color:#069;font-weight:bold\"\u003ereturn\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e } \n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e \u003cspan style=\"color:#069;font-weight:bold\"\u003eif\u003c/span\u003e \u003cspan style=\"color:#069;font-weight:bold\"\u003elet\u003c/span\u003e \u003cspan style=\"color:#033\"\u003eresponse\u003c/span\u003e = response {\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e XCTAssertTrue(response \u003cspan style=\"color:#069;font-weight:bold\"\u003eis\u003c/span\u003e FilesResult)\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e expectation.fulfill()\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e }\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e }\n\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display:flex;\"\u003e\u003cspan\u003e \u003cspan style=\"color:#069;font-weight:bold\"\u003eself\u003c/span\u003e.waitForExpectations(timeout: testTimeout, handler: \u003cspan style=\"color:#069;font-weight:bold\"\u003enil\u003c/span\u003e)\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e";
let dynamicReplacement = "";
function updateDynamicContent(value) {
dynamicReplacement = value;
updateDisplay();
}
function updateDisplay() {
const modifiedContent = originalContent.replace(/Book1\.xml/g, dynamicReplacement);
console.log(modifiedContent);
codeconent.innerHTML = modifiedContent;
}
.section-list{
}
.section-list ul{
display: flex;
flex-direction: row;
justify-content: space-between;
padding: 0px;
}
.section-list li{
list-style: none;
width: 27%;
line-height: 34px;
padding: 15px;
border-radius: 5px;
padding-top: 25px;
padding-bottom: 25px;
font-weight: bold;
word-break: break-all;
display: inline-block;
border: 1px dashed;
margin-bottom: 20px;
margin-right: 0px;
}
.section-list svg{
margin-top: -20px;
margin-left:1%;
margin-right:1%;
}
.heading-border{
font-size:28px !important;
width:100% !important;
padding-bottom:20px;
}
@media (min-width: 1200px){
.howtosection{
width: 1170px !important;
margin:0 auto !important;
}
.olstyle{
width: 1170px !important;
margin:0 auto !important;
}
}
@media (max-width: 868px){
.olstyle h2{
font-size:20px !important;
}
}
.olstyle ol{
list-style-type: none;
margin-right: 0;
margin-bottom: 0;
margin-left: 16px;
padding-top: 0;
padding-right: 0;
padding-bottom: 0;
padding-left: 30px;
}
.olstyle li{
margin-right: 0 !important;
line-height: 30px;
position: relative;
margin-bottom: 10px;
font-size: 18px;
}
.olstyle li a{
font-weight:bold;
text-decoration: underline !important;
}
.olstyle li::before{
position: absolute;
left: -30px;
top: 5px;
display: block;
background: #006bb0;
width: 20px;
height: 20px;
color: #fff;
text-align: center;
line-height: 20px;
font-size: 12px;
font-weight: 700;
border-radius: 10px;
}
.olstyle li:nth-child(1):before {
content: "1"
}
.olstyle li:nth-child(2):before {
content: "2"
}
.olstyle li:nth-child(3):before {
content: "3"
}
.olstyle li:nth-child(4):before {
content: "4"
}
.olstyle li:nth-child(5):before {
content: "5"
}
.olstyle li:nth-child(6):before {
content: "6"
}
.olstyle li:nth-child(7):before {
content: "7"
}
## Come utilizzare Swift API per esportare la cartella di lavoro in SQL
- Crea un account su[Pannello di controllo](https://dashboard.aspose.cloud/) per ottenere gratuitamente la quota API e i dettagli dell'autorizzazione
- Inizializza CellsApi con ID client, segreto client, URL di base e versione API
- Chiama il metodo postExport per ottenere il flusso risultante
.section-list{
}
.section-list ul{
display: flex;
flex-direction: row;
justify-content: space-between;
padding: 0px;
}
.section-list li{
list-style: none;
width: 27%;
line-height: 34px;
padding: 15px;
border-radius: 5px;
padding-top: 25px;
padding-bottom: 25px;
font-weight: bold;
word-break: break-all;
display: inline-block;
border: 1px dashed;
margin-bottom: 20px;
margin-right: 0px;
}
.section-list svg{
margin-top: -20px;
margin-left:1%;
margin-right:1%;
}
.heading-border{
font-size:28px !important;
width:100% !important;
padding-bottom:20px;
}
@media (min-width: 1200px){
.howtosection{
width: 1170px !important;
margin:0 auto !important;
}
.olstyle{
width: 1170px !important;
margin:0 auto !important;
}
}
@media (max-width: 868px){
.olstyle h2{
font-size:20px !important;
}
}
.olstyle ol{
list-style-type: none;
margin-right: 0;
margin-bottom: 0;
margin-left: 16px;
padding-top: 0;
padding-right: 0;
padding-bottom: 0;
padding-left: 30px;
}
.olstyle li{
margin-right: 0 !important;
line-height: 30px;
position: relative;
margin-bottom: 10px;
font-size: 18px;
}
.olstyle li a{
font-weight:bold;
text-decoration: underline !important;
}
.olstyle li::before{
position: absolute;
left: -30px;
top: 5px;
display: block;
background: #006bb0;
width: 20px;
height: 20px;
color: #fff;
text-align: center;
line-height: 20px;
font-size: 12px;
font-weight: 700;
border-radius: 10px;
}
.olstyle li:nth-child(1):before {
content: "1"
}
.olstyle li:nth-child(2):before {
content: "2"
}
.olstyle li:nth-child(3):before {
content: "3"
}
.olstyle li:nth-child(4):before {
content: "4"
}
.olstyle li:nth-child(5):before {
content: "5"
}
.olstyle li:nth-child(6):before {
content: "6"
}
.olstyle li:nth-child(7):before {
content: "7"
}
## Requisiti di sistema



