Skip to content

Commit 9b9f4ea

Browse files
authored
Merge pull request #47841 from girishnadiger-gep/patch-1
Update sdk-python-quickstart.md
2 parents 73e39a2 + 14e2d44 commit 9b9f4ea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

articles/cognitive-services/Bing-Custom-Search/sdk-python-quickstart.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,13 @@ from msrest.authentication import CognitiveServicesCredentials
4646

4747
```python
4848
subscription_key = 'your-subscription-key'
49+
endpoint = 'your-custom-endpoint'
4950
```
5051

5152
2. Create an instance of `CustomSearchClient`, using a `CognitiveServicesCredentials` object with the subscription key.
5253

5354
```python
54-
client = CustomSearchClient(CognitiveServicesCredentials(subscription_key))
55+
client = CustomSearchClient(endpoint, CognitiveServicesCredentials(subscription_key))
5556
```
5657

5758
3. Send a search request with `client.custom_instance.search()`. Append your search term to the `query` parameter, and set `custom_config` to your Custom Configuration ID to use your search instance. You can get your ID from the [Bing Custom Search portal](https://www.customsearch.ai/), by clicking the **Production** tab.

0 commit comments

Comments
 (0)