Skip to content

Initialize

Constants

Environments supported by Trimble Access Management.

const (
StagingEnvironment = "stage"
ProductionEnvironment = "prod"
)
ConstantTypeDescription
StagingEnvironmentstringStaging environment used for pre-production testing.
ProductionEnvironmentstringProduction environment used for production workloads.

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 ParameterTypeDescription
environmentstringThe Trimble Access Management environment that the SDK will target (see Constants).
consumerKeystringThe Trimble Cloud Console Client ID for your application.
consumerSecretstringThe Trimble Cloud Console Client Secret for your application.
tokenUrlstringThe url from which token has to be retrievTheed.
partitionstringThe partition that the SDK will target.