diff --git a/README.md b/README.md index 10c615372ae8f3b9c378b7d83807d358c1b7f223..fd3a9c2873257797f2f4cecbcf5dd2e393b9375f 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,15 @@ Create a `konnector-dev-config.json` file at the root with your test credentials ``` Then : +Define the base url and the API authentication key as environment variable : + +```sh +export API_AUTH_KEY=<the_api_authentication_key> +export BASE_URL=<the_api_base_url> +``` + +Then : + ```sh yarn yarn standalone diff --git a/src/index.js b/src/index.js index 0a504e95b445f065b001fd7f95e6c933bf6dd317..0c5edf1ba27ad381ff99a802e3b2a55d3f0e7d1a 100644 --- a/src/index.js +++ b/src/index.js @@ -11,9 +11,8 @@ const moment = require('moment') //const moment = require('moment') //require('request-debug')(rp) -const baseUrl = 'https://agence-rec.eaudugrandlyon.com/ws' -const apiAuthKey = - 'abe55f32cbcb403b3a121637c67d7570aadd62d1abb9696a6dcacdb87993e034' +const baseUrl = process.env.BASE_URL +const apiAuthKey = process.env.API_AUTH_KEY module.exports = new BaseKonnector(start)