Package com.smartsheet.api
Class SmartsheetFactory
- java.lang.Object
-
- com.smartsheet.api.SmartsheetFactory
-
public class SmartsheetFactory extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFAULT_BASE_URIRepresents the default base URI of the Smartsheet REST API.static java.lang.StringGOV_BASE_URIRepresents the default base URI of the Smartsheetgov REST API.
-
Constructor Summary
Constructors Constructor Description SmartsheetFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SmartsheetcreateDefaultClient()Creates a Smartsheet client with default parameters.static SmartsheetcreateDefaultClient(java.lang.String accessToken)Creates a Smartsheet client with default parameters.static SmartsheetcreateDefaultGovAccountClient()Creates a Smartsheet client with default parameters using the Smartsheetgov URI.static SmartsheetcreateDefaultGovAccountClient(java.lang.String accessToken)Creates a Smartsheet client with default parameters using the Smartsheetgov URI.static SmartsheetBuildercustom()Returns a builder to allow the caller to create a custom Smartsheet client.
-
-
-
Field Detail
-
DEFAULT_BASE_URI
public static final java.lang.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".
- See Also:
- Constant Field Values
-
GOV_BASE_URI
public static final java.lang.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".
- See Also:
- Constant Field Values
-
-
Method Detail
-
createDefaultClient
public static Smartsheet createDefaultClient()
Creates a Smartsheet client with default parameters. SMARTSHEET_ACCESS_TOKEN must be set in the environment.
- Returns:
- the Smartsheet client
-
createDefaultClient
public static Smartsheet createDefaultClient(java.lang.String accessToken)
Creates a Smartsheet client with default parameters.
- Returns:
- the Smartsheet client
-
createDefaultGovAccountClient
public static Smartsheet createDefaultGovAccountClient()
Creates a Smartsheet client with default parameters using the Smartsheetgov URI. SMARTSHEET_ACCESS_TOKEN must be set in the environment.
- Returns:
- the Smartsheet client
-
createDefaultGovAccountClient
public static Smartsheet createDefaultGovAccountClient(java.lang.String accessToken)
Creates a Smartsheet client with default parameters using the Smartsheetgov URI.
- Returns:
- the Smartsheet client
-
custom
public static SmartsheetBuilder custom()
Returns a builder to allow the caller to create a custom Smartsheet client.
- Returns:
- the SmartsheetBuilder
-
-