Swift API to clear duplicate rows on local Microsoft Excel and OpenOffice Calc spreadsheet
Swift Clear to clear duplicate rows on local Microsoft Excel and OpenOffice Calc spreadsheet
Clear duplicate rows on local Microsoft Excel and OpenOffice Calc spreadsheet - Swift REST API
API Request:
POST
https://api.aspose.cloud/v3.0/cells/clear
Clearing duplicate rows on local Microsoft Excel and OpenOffice Calc spreadsheet is a complex task. Clearing duplicate rows on local Microsoft Excel and OpenOffice Calc spreadsheet transitions is performed by our Swift SDK while maintaining the source spreadsheet's main structural and logical content. Our Swift library is a professional solution to Clear duplicate rows on local Microsoft Excel and OpenOffice Calc spreadsheet online. This Cloud SDK gives Swift developers powerful functionality and perfect API.
Swift code for clearing duplicate rows on local spreadsheets
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
let expectation1 = self.expectation(description: "checkAuth") | |
AsposeCellsCloudAPI.clientId = "xxx-xxx-xxx-xxx-xxxxx" | |
AsposeCellsCloudAPI.clientSecret = "xxxxxx" | |
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: "test postClearObjects ") | |
var files = Dictionary<String, URL>() | |
files[DataSource] = getURL(DataSource) | |
files[AssemblyTest] = getURL(AssemblyTest) | |
let objecttype:String = "DuplicateRows" | |
LiteCellsAPI.postClearObjects(files: files, objecttype: objecttype) | |
{ | |
(response, error) in | |
guard error == nil else { | |
XCTFail("error test postClearObjects ") | |
return | |
} | |
if let response = response { | |
XCTAssertTrue(response is FilesResult) | |
expectation.fulfill() | |
} | |
} | |
self.waitForExpectations(timeout: testTimeout, handler: nil) |
How to use Swift API to clear duplicate rows
- Create an account at Dashboard to get free API quota & authorization details
- Initialize CellsApi with Client Id, Client Secret, Base URL & API version
- Call postClearObjects method to get the resultant stream
System Requirements
- macOS Monterey 12.4
- Swift 4.2