public interface PassthroughResources
This interface provides methods to access Passthrough resources.
Thread Safety: Implementation of this interface must be thread safe.
| Modifier and Type | Method and Description |
|---|---|
String |
deleteRequest(String endpoint)
Issue an HTTP DELETE request.
|
String |
getRequest(String endpoint,
HashMap<String,Object> parameters)
Issue an HTTP GET request.
|
String |
postRequest(String endpoint,
String payload,
HashMap<String,Object> parameters)
Issue an HTTP POST request.
|
String |
putRequest(String endpoint,
String payload,
HashMap<String,Object> parameters)
Issue an HTTP PUT request.
|
String getRequest(String endpoint, HashMap<String,Object> parameters) throws SmartsheetException
Issue an HTTP GET request.
endpoint - the API endpointparameters - optional list of resource parametersIllegalArgumentException - 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 operationString postRequest(String endpoint, String payload, HashMap<String,Object> parameters) throws SmartsheetException
Issue an HTTP POST request.
endpoint - the API endpointpayload - a JSON payload stringparameters - optional list of resource parametersIllegalArgumentException - 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 operationString putRequest(String endpoint, String payload, HashMap<String,Object> parameters) throws SmartsheetException
Issue an HTTP PUT request.
endpoint - the API endpointpayload - a JSON payload stringparameters - optional list of resource parametersIllegalArgumentException - 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 operationString deleteRequest(String endpoint) throws SmartsheetException
Issue an HTTP DELETE request.
endpoint - the API endpointIllegalArgumentException - 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–2019 Smartsheet. All rights reserved.