@equitysim/trkd-client
Advanced tools
Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "@equitysim/trkd-client", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "REST Client for TRKD API", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -14,19 +14,3 @@ import fetch from 'node-fetch' | ||
async createServiceToken(TRKDClient) { | ||
// const path = this.host + '/api/TokenManagement/TokenManagement.svc/REST/Anonymous/TokenManagement_1/CreateServiceToken_1' | ||
// const body = JSON.stringify({ | ||
// CreateServiceToken_Request_1: { | ||
// ApplicationID: TRKDClient._serviceAccount.application, | ||
// Username: TRKDClient._serviceAccount.username, | ||
// Password: TRKDClient._serviceAccount.password, | ||
// }, | ||
// }) | ||
// const headers = { | ||
// 'Content-Type': 'application/json', | ||
// } | ||
// const res = await fetch(path, { method: 'POST', headers, body }) | ||
// if (!res.ok) throw new Error(res.statusText) | ||
// const json = await res.json() | ||
const responseObj = JSON.parse("{'Token':'abc', 'Expiration': '2031-04-11T10:20:30Z'}"); | ||
const responseObj = JSON.parse('{"Token":"abc", "Expiration": "2031-04-11T10:20:30Z"}'); | ||
console.log('token object: ' + responseObj); | ||
@@ -33,0 +17,0 @@ if (TRKDClient._redisConn) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
51288
1590