public interface SearchResources
| Modifier and Type | Method and Description |
|---|---|
SearchResult |
search(String query)
Performs a search across all Sheets to which user has access.
|
SearchResult |
searchSheet(long sheetId,
String query)
Performs a search within a sheet.
|
SearchResult search(String query) throws SmartsheetException
Performs a search across all Sheets to which user has access.
It mirrors to the following Smartsheet REST API method: GET /search
query - the query textIllegalArgumentException - if any argument is null or empty stringInvalidRequestException - if there is any problem with the REST API requestAuthorizationException - if there is any problem with the REST API authorization (access token)ResourceNotFoundException - if the resource cannot be foundServiceUnavailableException - if the REST API service is not available (possibly due to rate limiting)SmartsheetException - if there is any other error during the operationSearchResult searchSheet(long sheetId, String query) throws SmartsheetException
Performs a search within a sheet.
It mirrors to the following Smartsheet REST API method: GET /search/sheet/{sheetId}
sheetId - the sheet idquery - the query textIllegalArgumentException - if any argument is null or empty stringInvalidRequestException - if there is any problem with the REST API requestAuthorizationException - if there is any problem with the REST API authorization (access token)ResourceNotFoundException - if the resource cannot be foundServiceUnavailableException - if the REST API service is not available (possibly due to rate limiting)SmartsheetException - if there is any other error during the operationCopyright © 2014–2017 Smartsheet. All rights reserved.