From 009ac7b8aa428d0f9834b06408d156152ce5ed0b Mon Sep 17 00:00:00 2001 From: chughts Date: Thu, 7 Jun 2018 09:08:59 +0100 Subject: [PATCH] Implement iam for Personality Insights --- services/personality_insights/v3.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/services/personality_insights/v3.js b/services/personality_insights/v3.js index 05dd93fc..d3f631d1 100644 --- a/services/personality_insights/v3.js +++ b/services/personality_insights/v3.js @@ -33,12 +33,12 @@ module.exports = function (RED) { VALID_INPUT_LANGUAGES = ['ar','en','es','ja'], VALID_RESPONSE_LANGUAGES = ['ar','de','en','es','fr','it','ja','ko','pt-br','zh-cn','zh-tw']; - if (service) { - sUsername = service.username ? service.username : ''; - sPassword = service.password ? service.password : ''; - sApikey = service.apikey ? service.apikey : ''; - sEndpoint = service.url; - } + if (service) { + sUsername = service.username ? service.username : ''; + sPassword = service.password ? service.password : ''; + sApikey = service.apikey ? service.apikey : ''; + sEndpoint = service.url; + } // This HTTP GET REST request is used by the browser side of the node to // determine if credentials are found.