We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc7d871 commit 6599ee2Copy full SHA for 6599ee2
DictionaryLookup.py
@@ -12,7 +12,7 @@
12
key_var_name = 'TRANSLATOR_TEXT_SUBSCRIPTION_KEY'
13
if not key_var_name in os.environ:
14
raise Exception('Please set/export the environment variable: {}'.format(key_var_name))
15
-subscriptionKey = os.environ[key_var_name]
+subscription_key = os.environ[key_var_name]
16
17
endpoint_var_name = 'TRANSLATOR_TEXT_ENDPOINT'
18
if not endpoint_var_name in os.environ:
@@ -26,7 +26,7 @@
26
constructed_url = endpoint + path + params
27
28
headers = {
29
- 'Ocp-Apim-Subscription-Key': subscriptionKey,
+ 'Ocp-Apim-Subscription-Key': subscription_key,
30
'Content-type': 'application/json',
31
'X-ClientTraceId': str(uuid.uuid4())
32
}
0 commit comments