Correct endpoint
This commit is contained in:
parent
2f8b205b22
commit
ec3d5777e9
|
@ -3,7 +3,7 @@ const fs = require('fs')
|
||||||
const { Blob } = require('buffer')
|
const { Blob } = require('buffer')
|
||||||
const dotenv = require('dotenv')
|
const dotenv = require('dotenv')
|
||||||
const session_start = 'https://nextgenerations-cities.encs.concordia.ca/api/v1.4/session/start'
|
const session_start = 'https://nextgenerations-cities.encs.concordia.ca/api/v1.4/session/start'
|
||||||
const insel_meb = https://nextgenerations-cities.encs.concordia.ca/api/v1.4/workflow/insel-monthly-energy-balance
|
const insel_meb = 'https://nextgenerations-cities.encs.concordia.ca/api/v1.4/workflow/insel-monthly-energy-balance'
|
||||||
|
|
||||||
|
|
||||||
exports.run = async (application, param, tmp_path) => {
|
exports.run = async (application, param, tmp_path) => {
|
||||||
|
@ -21,7 +21,7 @@ exports.run = async (application, param, tmp_path) => {
|
||||||
'application-uuid': application_uuid,
|
'application-uuid': application_uuid,
|
||||||
'accept': 'application/json'
|
'accept': 'application/json'
|
||||||
}
|
}
|
||||||
});
|
})
|
||||||
if (response.status == 200) {
|
if (response.status == 200) {
|
||||||
const session_id = response.headers.get('session_id')
|
const session_id = response.headers.get('session_id')
|
||||||
let token = response.headers.get('token')
|
let token = response.headers.get('token')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user