Getting started with JavaScript
All components of this SDK are distributed as NPM packages from Trimble’s eTools Artifactory repository. Below is the list of things you will need before you can get started with the SDKs.
OKTA login is required to access most of the articles below. If you cannot get to any of the sites below, please reach out to the Trimble Cloud Support.
To get a copy of SDK packages
Section titled “To get a copy of SDK packages”- Login to the E-Tools Artifactory and obtain your API Key.
- Make the following cURL request:
curl -u<email_address>:<api_key> https://artifactory.trimble.tools/artifactory/api/npm/trimblecloudplatform-engagement-npm/auth/trimblecloudplatformExample Response:
@trimblecloudplatform:registry=https://artifactory.trimble.tools/artifactory/api/npm/trimblecloudplatform-engagement-npm/ //artifactory.trimble.tools/artifactory/api/npm/trimblecloudplatform-engagement-npm/:_password=... //artifactory.trimble.tools/artifactory/api/npm/trimblecloudplatform-engagement-npm/:username=john_example@example.com //artifactory.trimble.tools/artifactory/api/npm/trimblecloudplatform-engagement-npm/:email=john_example@example.com //artifactory.trimble.tools/artifactory/api/npm/trimblecloudplatform-engagement-npm/:always-auth=true-
Copy this response into your .npmrc file. (e.g. C:/users/
/.npmrc on a Windows machine). -
Packages can now be added to your project like this:
npm install @trimblecloudplatform/trimblecloud.dataocean3