Go API to clear duplicate rows on local Microsoft Excel and OpenOffice Calc spreadsheet
Go Clear to clear duplicate rows on local Microsoft Excel and OpenOffice Calc spreadsheet
Clear duplicate rows on local Microsoft Excel and OpenOffice Calc spreadsheet - Go 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 Go SDK while maintaining the source spreadsheet's main structural and logical content. Our Go library is a professional solution to Clear duplicate rows on local Microsoft Excel and OpenOffice Calc spreadsheet online. This Cloud SDK gives Go developers powerful functionality and perfect API.
Go 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
package main | |
import ( | |
. "github.com/aspose-cells-cloud/aspose-cells-cloud-go/v25" | |
) | |
func main() { | |
CellsCloudClientId := "...." // get from https://dashboard.aspose.cloud/#/applications | |
CellsCloudClientSecret := "...." // get from https://dashboard.aspose.cloud/#/applications | |
instance := NewCellsApiService(CellsCloudClientId, CellsCloudClientSecret) | |
localFolder := "testdata/" | |
book1Xlsx := "Book1.xlsx" | |
dataSourceXlsx := "datasource.xlsx" | |
objecttype := "duplicaterows" | |
var mapFiles map[string]string | |
mapFiles = make(map[string]string) | |
mapFiles[book1Xlsx] = localFolder + book1Xlsx | |
mapFiles[dataSourceXlsx] = localFolder + dataSourceXlsx | |
request := new(PostClearObjectsRequest) | |
request.File = mapFiles | |
request.Objecttype = objecttype | |
_, response, err := instance.PostClearObjects(request) | |
if err != nil { | |
println(err.Error()) | |
} | |
println(response.StatusCode) | |
} |
How to use Go 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
- go version go1.13.0 or newer