Skip to content

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.

  1. Login to the E-Tools Artifactory and obtain your API Key.
  2. Make the following cURL request:
Terminal window
curl -u<email_address>:<api_key> https://artifactory.trimble.tools/artifactory/api/npm/trimblecloudplatform-engagement-npm/auth/trimblecloudplatform

Example Response:

Terminal window
@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
  1. Copy this response into your .npmrc file. (e.g. C:/users//.npmrc on a Windows machine).

  2. Packages can now be added to your project like this:

Terminal window
npm install @trimblecloudplatform/trimblecloud.dataocean3