Initialize
Constants
Section titled “Constants”Environments supported by Trimble Access Management.
const ( StagingEnvironment = "stage" ProductionEnvironment = "prod")| Constant | Type | Description |
|---|---|---|
StagingEnvironment |
string |
Staging environment used for pre-production testing. |
ProductionEnvironment |
string |
Production environment used for production workloads. |
func Initialize
Section titled “func Initialize”func Initialize(environment string, consumerKey string, consumerSecret string, tokenUrl string, partition string) ()Initialize initialized the SDK interface configured with the consumer’s credentials for a given environment.
| Input Parameter | Type | Description |
|---|---|---|
environment |
string |
The Trimble Access Management environment that the SDK will target (see Constants). |
consumerKey |
string |
The Trimble Cloud Console Client ID for your application. |
consumerSecret |
string |
The Trimble Cloud Console Client Secret for your application. |
tokenUrl |
string |
The url from which token has to be retrievTheed. |
partition |
string |
The partition that the SDK will target. |