From b7ee65cd3f37c24808db636eae5c02f9b0261d8c Mon Sep 17 00:00:00 2001 From: Dustin Popp Date: Tue, 7 Aug 2018 15:32:17 -0500 Subject: [PATCH] docs: change ltv3 example in readme --- README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 206dee8ce7..b0a564c34b 100755 --- a/README.md +++ b/README.md @@ -350,11 +350,10 @@ discovery.query( Translate text from one language to another or idenfity a language using the [Language Translator][language_translator] service. ```javascript -var LanguageTranslatorV3 = require('watson-developer-cloud/language-translator/v3'); +const LanguageTranslatorV3 = require('watson-developer-cloud/language-translator/v3'); -var languageTranslator = new LanguageTranslatorV3({ - username: '', - password: '', +const languageTranslator = new LanguageTranslatorV3({ + iam_apikey: '', url: 'https://gateway.watsonplatform.net/language-translator/api/', version: 'YYYY-MM-DD', });