Swift API zum Exportieren von WORKBOOK in eine SQL-Datei

Swift-Bibliothek zum Exportieren von WORKBOOK in eine SQL-Datei

Verwenden Sie Cells Export REST API, um interne Objekt-Workflows von Tabellenkalkulationen in Swift zu exportieren. Dies ist eine professionelle Lösung, um WORKBOOK online mit Swift aus Tabellenkalkulationen in eine SQL-Formatdatei zu exportieren.

Exportieren Sie das WORKBOOK-Objekt in eine Datei im SQL-Format in Swift

API
POST
https://api.aspose.cloud/v3.0/cells/export

Das Exportieren von WORKBOOK-Objekten aus einer Tabellenkalkulation in eine SQL-Datei ist eine komplexe Aufgabe. Die Formatübergänge von WORKBOOK in SQL werden von unserem Swift SDK durchgeführt, wobei der strukturelle und logische Hauptinhalt der Quelltabelle WORKBOOK erhalten bleibt. Unsere Swift-Bibliothek ist eine professionelle Lösung zum Online-Exportieren von WORKBOOK-Objekten in SQL-Formatdateien. Dieses Cloud SDK bietet Swift-Entwicklern leistungsstarke Funktionen und perfekte SQL-Ausgabe.

Codebeispiel in Swift mit REST API zum Exportieren von WORKBOOK aus einer Tabelle in das SQL-Format

    // 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: "checkAuth")
    AsposeCellsCloudAPI.clientId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
    AsposeCellsCloudAPI.clientSecret = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
    AuthAspose.checkAuth()
    {
        (authError) in
        guard authError == nil else {
            XCTFail("error checkAuth")
            return
        }
        expectation1.fulfill()
    }
    self.waitForExpectations(timeout: testTimeout, handler: nil)
    let expectation = self.expectation(description: "testpostExport_Workbook")
    let objectType:String = "workbook"
    let format:String = "sql"
    var files = Dictionary<String, 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("error testpostExport_Workbook")
            return
        }        
        if let response = response {
            XCTAssertTrue(response is FilesResult)
            expectation.fulfill()
        }
    }
    self.waitForExpectations(timeout: testTimeout, handler: nil)


So verwenden Sie Swift API zum Exportieren von WORKBOOK nach SQL

  1. Erstellen Sie ein Konto unterArmaturenbrett um ein kostenloses API-Kontingent und Autorisierungsdetails zu erhalten
  2. Initialisieren Sie CellsApi mit Client-ID, Client-Geheimnis, Basis-URL und Version API
  3. Rufen Sie die Methode postExport auf, um den resultierenden Stream abzurufen


System Anforderungen