Search Spreadsheet Broken Links in a Spreadsheet Search for broken links within local spreadsheets.
Search Spreadsheet Broken Links API
Copy PUT http://api.aspose.cloud/v4.0/cells/search/broken-links
Request Parameters:
Parameter Name
Type
Path/Query String/HTTPBody
Description
Spreadsheet
File
FormData
Upload the spreadsheet file to be analyzed.
worksheet
String
Query
Specify the worksheet for examination.
cellArea
String
Query
Define the cell area for analysis.
region
String
Query
Set the spreadsheet region configuration.
password
String
Query
Provide the password for accessing the spreadsheet file.
Response
Copy {
"Name" : "BrokenLinksResponse" ,
"Type" : "Class" ,
"ParentName" : "CellsCloudResponse" ,
"Properties" : [
{
"Name" : "BrokenLinks" ,
"DataType" : {
"Identifier" : "Container" ,
"Reference" : "BrokenLink" ,
"ElementDataType" : {
"Identifier" : "Class" ,
"Reference" : "BrokenLink" ,
},
}
},
{
"Name" : "Code" ,
"DataType" : {
"Identifier" : "Integer" ,
}
},
{
"Name" : "Status" ,
"DataType" : {
"Identifier" : "String" ,
}
}
]
}
Error Codes
400 Bad Request : Invalid Apose.Cells Cloud API URI.
401 Unauthorized : Invalid access token. Or invalid client id and secret.
404 Not Found : The spreadsheet file not accessible.
500 Server Error : The spreadsheet has encountered an anomaly in obtaining calculation data.
Where should we use the Search broken links within the Spreadsheet API?
When you need to Search broken links within the Spreadsheet, you can use this API.
Why should you use the Search broken links within the Spreadsheet API?
Effortlessly search broken links within a remote spreadsheet with this API.
Development can be quickly completed through the existing SDK.
How to Use the Search for broken links within the Spreadsheet API with SDKs
OpenAPI Specification
The OpenAPI Specification defines a publicly accessible programming interface, allowing you to carry out REST interactions directly from a web browser.
Use Aspose.Cells Cloud SDKs
Using the SDK is the best way to accelerate development. The SDK handles the underlying details, allowing you to simply implement search broken links within spreadsheets for cells with minimal code.
Please check out the GitHub repository for a complete list of Aspose.Cells Cloud SDKs.
The following code examples illustrate how to make calls to Aspose.Cells web services using various SDKs:
C#
This file contains hidden or 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
using Aspose.Cells.Cloud.SDK.Api;
using Aspose.Cells.Cloud.SDK.Model;
using Aspose.Cells.Cloud.SDK.Request;
using System;
using System.IO;
using System.Collections.Generic;
using Range = Aspose.Cells.Cloud.SDK.Model.Range;
public static class Example40_SearchSpreadsheetBrokenLinks
{
public static void Run()
{
CellsApi cellsApi = new CellsApi("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
string bookFormulaXlsx = "BookFormula.xlsx";
var request = new SearchSpreadsheetBrokenLinksRequest(
spreadsheet: "TestData/" + bookFormulaXlsx
);
cellsApi.SearchSpreadsheetBrokenLinks(request);
}
}
Java
This file contains hidden or 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 com.aspose.cloud.cells.api;
import com.aspose.cloud.cells.client.*;
import com.aspose.cloud.cells.model.*;
import com.aspose.cloud.cells.request.*;
import org.junit.Test;
import java.util.ArrayList;
import java.util.List;
import java.io.File;
import java.util.HashMap;
public class ExampleSearchSpreadsheetBrokenLinks {
private CellsApi api;
public ExampleSearchSpreadsheetBrokenLinks(){
try {
api = new CellsApi(
System.getenv("CellsCloudClientId"),
System.getenv("CellsCloudClientSecret"),
"v3.0",
System.getenv("CellsCloudApiBaseUrl")
);
} catch (ApiException e) {
e.printStackTrace();
}
}
public void Run(){
try{
String bookFormulaXlsx = "BookFormula.xlsx";
SearchSpreadsheetBrokenLinksRequest request = new SearchSpreadsheetBrokenLinksRequest();
request.setSpreadsheet("TestData/" + bookFormulaXlsx);
this.api.searchSpreadsheetBrokenLinks(request);
} catch (ApiException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
PHP
This file contains hidden or 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
<?php
require_once('vendor\autoload.php');
use \Aspose\Cells\Cloud\Api\CellsApi;
use \Aspose\Cells\Cloud\Request\SearchSpreadsheetBrokenLinksRequest;
use \Aspose\Cells\Cloud\Request\UploadFileRequest;
$cellsApi = new CellsApi(getenv("CellsCloudClientId"),getenv("CellsCloudClientSecret"));
$request = new UploadFileRequest();
$request->setUploadFiles( "TestData/BookFormula.xlsx");
$request->setPath( "TestData/BookFormula.xlsx");
$cellsApi->uploadFile($request);
$request = new SearchSpreadsheetBrokenLinksRequest();
$request->setSpreadsheet( "TestData/BookFormula.xlsx" );
$cellsApi->searchSpreadsheetBrokenLinks($request);
Ruby
This file contains hidden or 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
require 'openssl'
require 'bundler'
require 'aspose_cells_cloud'
@instance = AsposeCellsCloud::CellsApi.new(ENV['CellsCloudClientId'], ENV['CellsCloudClientSecret'],'v3.0',ENV['CellsCloudApiBaseUrl'])
book_formula_xlsx = 'BookFormula.xlsx'
request = AsposeCellsCloud::SearchSpreadsheetBrokenLinksRequest.new(:Spreadsheet=>'TestData/' + book_formula_xlsx);
@instance.search_spreadsheet_broken_links(request);
Node.js
This file contains hidden or 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
var fs = require('fs');
var path = require('path');
const _ = require('asposecellscloud');
const cellsApi = new CellsApi(process.env.CellsCloudClientId, process.env.CellsCloudClientSecret,"v3.0",process.env.CellsCloudApiBaseUrl);
var bookFormulaXlsx = "BookFormula.xlsx"
var request = new model.SearchSpreadsheetBrokenLinksRequest();
request.spreadsheet = "TestData/" + bookFormulaXlsx;
return cellsApi.searchSpreadsheetBrokenLinks(request).then((result) => {
expect(result.response.statusCode).to.equal(200);
});
Python
This file contains hidden or 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
import os
import sys
from asposecellscloud.apis.cells_api import CellsApi
from asposecellscloud.models import *
from asposecellscloud.requests import *
api = CellsApi(os.getenv('CellsCloudClientId'),os.getenv('CellsCloudClientSecret'),"v3.0",os.getenv('CellsCloudApiBaseUrl'))
book_formula_xlsx = 'BookFormula.xlsx'
request = SearchSpreadsheetBrokenLinksRequest( 'TestData/' + book_formula_xlsx)
api.search_spreadsheet_broken_links(request)
Perl
This file contains hidden or 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
use lib 'lib';
use strict;
use warnings;
use File::Slurp;
use MIME::Base64;
use AsposeCellsCloud::CellsApi;
my $config = AsposeCellsCloud::Configuration->new( client_id => $ENV{'CellsCloudClientId'}, client_secret => $ENV{'CellsCloudClientSecret'});
my $instance = AsposeCellsCloud::CellsApi->new(AsposeCellsCloud::ApiClient->new( $config));
my $bookFormulaXlsx = 'BookFormula.xlsx';
my $request = AsposeCellsCloud::Request::SearchSpreadsheetBrokenLinksRequest->new();
$request->{spreadsheet} = 'TestData/' . $bookFormulaXlsx;
$instance->search_spreadsheet_broken_links(request=> $request);
Go
This file contains hidden or 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 (
"os"
asposecellscloud "github.com/aspose-cells-cloud/aspose-cells-cloud-go/v25"
)
func main() {
instance := asposecellscloud.NewCellsApiService(os.Getenv("ProductClientId"), os.Getenv("ProductClientSecret"))
bookFormulaXlsx := "BookFormula.xlsx"
request := new(asposecellscloud.SearchSpreadsheetBrokenLinksRequest)
request.Spreadsheet = "TestData/" + bookFormulaXlsx
_, httpResponse, err := instance.SearchSpreadsheetBrokenLinks(request)
if err != nil {
print(err.Error())
} else if httpResponse.StatusCode < 200 || httpResponse.StatusCode > 299 {
print("Fail")
}
}