1.1.19 • Published 2 years ago
aqts-client v1.1.19
AQTS_Client library
TS/JS library client for Aquarius Timeseries data pulls
Getting Started
npm i aqts-client
Creating an instance and pulling data example
import AquariusApi from "aqts-client";
\\ Get token
const credentials = {
Username: "aqts-username"
EncryptedPassword: "aqts-password"
}
const token = await AquariusApi.getTokenWithCredentials(
"server",
credentials
).then(response => response)
\\ Initiate an Aquarius instance
let instance = new AquariusApi(server, token);
\\ Retrieve data
const locationId = {
LocationIdentifier: "locationIdentifier"
}
const locationData = await instance.getLocationData(
locationId
).then(reponse => response)
\\Retrieve data from an endpoint without a method
const data = await instance.getCustomEndpoint(
"CustomEndpoint"
{ property1: "value, "propertty2: "value" }
).then(response => response)
Devloper's Guide
Clone repo
$ git clone https://code.usgs.gov/keoconnor/aqts-client.git
Set up environment variables
export AQ_USERNAME=<username>
export AQ_PASSWORD=<password>
Run tests
$ jest
or
$ npm run test
1.1.19
2 years ago
1.1.9
3 years ago
1.1.8
3 years ago
1.1.7
3 years ago
1.1.6
3 years ago
1.1.12
3 years ago
1.1.11
3 years ago
1.1.10
3 years ago
1.1.16
3 years ago
1.1.15
3 years ago
1.1.14
3 years ago
1.1.13
3 years ago
1.1.18
3 years ago
1.1.17
3 years ago
1.1.5
3 years ago
1.1.4
3 years ago
1.1.3
3 years ago
1.1.2
3 years ago
1.1.1
3 years ago
1.1.0
3 years ago
1.0.6
3 years ago
1.0.5
3 years ago
1.0.4
3 years ago
1.0.3
3 years ago
1.0.2
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago