I have a Python Flask app on my laptop that successfully accesses the Watson Language Translator on Bluemix precisely as described in the Bluemix API Documentation
from watson_developer_cloud import LanguageTranslatorV2 as LanguageTranslator
language_translator = LanguageTranslator(
username='4e93f965-f1ab-407c-a502-xxxxxx',
password='3zUExxxxxx')
translation = language_translator.translate(
text='hello there, this is a test',
source='en', target='fr')
print(json.dumps(translation, indent=2, ensure_ascii=False))
I now want to move my Python Flask app to Bluemix and access the Language Translator service totally within Bluemix. So I can no longer use from watson_developer_cloud import LanguageTranslatorV2 as LanguageTranslator
Precisely how do I access the Language Translation Service within Bluemix using the Language Translation Service credentials?