1.1.19 • Published 1 year 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
1 year ago
1.1.9
2 years ago
1.1.8
2 years ago
1.1.7
2 years ago
1.1.6
2 years ago
1.1.12
2 years ago
1.1.11
2 years ago
1.1.10
2 years ago
1.1.16
1 year ago
1.1.15
1 year ago
1.1.14
2 years ago
1.1.13
2 years ago
1.1.18
1 year ago
1.1.17
1 year ago
1.1.5
2 years ago
1.1.4
2 years ago
1.1.3
2 years ago
1.1.2
2 years ago
1.1.1
2 years ago
1.1.0
2 years ago
1.0.6
2 years ago
1.0.5
2 years ago
1.0.4
2 years ago
1.0.3
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago