public class SmartsheetFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_BASE_URI
Represents the default base URI of the Smartsheet REST API.
|
static String |
GOV_BASE_URI
Represents the default base URI of the Smartsheetgov REST API.
|
| Constructor and Description |
|---|
SmartsheetFactory() |
| Modifier and Type | Method and Description |
|---|---|
static Smartsheet |
createDefaultClient()
Creates a Smartsheet client with default parameters.
|
static Smartsheet |
createDefaultClient(String accessToken)
Creates a Smartsheet client with default parameters.
|
static Smartsheet |
createDefaultGovAccountClient()
Creates a Smartsheet client with default parameters using the Smartsheetgov URI.
|
static Smartsheet |
createDefaultGovAccountClient(String accessToken)
Creates a Smartsheet client with default parameters using the Smartsheetgov URI.
|
static SmartsheetBuilder |
custom()
Returns a builder to allow the caller to create a custom Smartsheet client.
|
public static final String DEFAULT_BASE_URI
Represents the default base URI of the Smartsheet REST API.
It is a constant with value "https://api.smartsheet.com/2.0".
public static final String GOV_BASE_URI
Represents the default base URI of the Smartsheetgov REST API.
It is a constant with value "https://api.smartsheetgov.com/2.0".
public static Smartsheet createDefaultClient()
Creates a Smartsheet client with default parameters. SMARTSHEET_ACCESS_TOKEN must be set in the environment.
public static Smartsheet createDefaultClient(String accessToken)
Creates a Smartsheet client with default parameters.
accessToken - public static Smartsheet createDefaultGovAccountClient()
Creates a Smartsheet client with default parameters using the Smartsheetgov URI. SMARTSHEET_ACCESS_TOKEN must be set in the environment.
public static Smartsheet createDefaultGovAccountClient(String accessToken)
Creates a Smartsheet client with default parameters using the Smartsheetgov URI.
accessToken - public static SmartsheetBuilder custom()
Returns a builder to allow the caller to create a custom Smartsheet client.
Copyright © 2014–2019 Smartsheet. All rights reserved.