Skip to content

Commit c6bb7f6

Browse files
authored
Merge pull request #90 from wiazur/patch-50
Updated key/endpoint
2 parents 425533d + 81e0d29 commit c6bb7f6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

python/Search/BingEntitySearchv7.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import os, requests, json
22

3-
subscriptionKey = 'put_your_key_here'
4-
host = ''
3+
# Add your Bing Entity Search subscription key and endpoint to your environment variables.
4+
subscriptionKey = os.environ['BING_ENTITY_SEARCH_SUBSCRIPTION_KEY']
5+
host = os.environ['BING_ENTITY_SEARCH_ENDPOINT']
56
path = ''
67
search_query = ''
78

@@ -73,4 +74,4 @@ def get_suggestions ():
7374
return response.read ()
7475

7576
result = get_suggestions ()
76-
print (json.dumps(json.loads(result), indent=4))
77+
print (json.dumps(json.loads(result), indent=4))

0 commit comments

Comments
 (0)