We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 425533d + 81e0d29 commit c6bb7f6Copy full SHA for c6bb7f6
python/Search/BingEntitySearchv7.py
@@ -1,7 +1,8 @@
1
import os, requests, json
2
3
-subscriptionKey = 'put_your_key_here'
4
-host = ''
+# Add your Bing Entity Search subscription key and endpoint to your environment variables.
+subscriptionKey = os.environ['BING_ENTITY_SEARCH_SUBSCRIPTION_KEY']
5
+host = os.environ['BING_ENTITY_SEARCH_ENDPOINT']
6
path = ''
7
search_query = ''
8
@@ -73,4 +74,4 @@ def get_suggestions ():
73
74
return response.read ()
75
76
result = get_suggestions ()
-print (json.dumps(json.loads(result), indent=4))
77
+print (json.dumps(json.loads(result), indent=4))
0 commit comments