Skip to content

Commit ef1c00e

Browse files
author
dksimpson
committed
Edits
1 parent c8930c9 commit ef1c00e

File tree

4 files changed

+13
-18
lines changed

4 files changed

+13
-18
lines changed

articles/cognitive-services/bing-local-business-search/quickstarts/local-quickstart.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,15 @@ ms.author: aahi
1414

1515
# Quickstart: Send a query to the Bing Local Business Search API in C#
1616

17-
Use this quickstart to begin sending requests to the Bing Local Business Search API, which is an Azure Cognitive Service. Although this simple application is written in C#, the API is a RESTful Web service compatible with any programming language capable of making HTTP requests and parsing JSON.
17+
Use this quickstart to learn how to send requests to the Bing Local Business Search API, which is an Azure Cognitive Service. Although this simple application is written in C#, the API is a RESTful Web service compatible with any programming language capable of making HTTP requests and parsing JSON.
1818

1919
This example application gets local response data from the API for a search query.
2020

2121
## Prerequisites
2222

2323
* Any edition of [Visual Studio 2019](https://www.visualstudio.com/downloads/).
2424
* If you're using Linux/MacOS, this application can be run using [Mono](https://www.mono-project.com/).
25-
26-
You must have a [Cognitive Services API account](https://docs.microsoft.com/azure/cognitive-services/cognitive-services-apis-create-account) with Bing Search APIs. The [free trial](https://azure.microsoft.com/try/cognitive-services/?api=bing-web-search-api) is sufficient for this quickstart. See also [Cognitive Services Pricing - Bing Search API](https://azure.microsoft.com/pricing/details/cognitive-services/search-api/).
25+
* A [Cognitive Services API account](https://docs.microsoft.com/azure/cognitive-services/cognitive-services-apis-create-account) with Bing Search APIs. For this quickstart, the [free trial](https://azure.microsoft.com/try/cognitive-services/?api=bing-web-search-api) is sufficient. Save the API key that's provided when you activate your free trial. For more information, see [Cognitive Services Pricing - Bing Search API](https://azure.microsoft.com/pricing/details/cognitive-services/search-api/).
2726

2827
## Create the request
2928

@@ -49,7 +48,7 @@ The following code creates a `WebRequest`, sets the access key header, and adds
4948

5049
## Run the complete application
5150

52-
The Bing Local Business Search API returns localized search results from the Bing search engine.
51+
The following code uses the Bing Local Business Search API to return localized search results from the Bing search engine. You can use this code by following these steps:
5352
1. Create a new console solution in Visual Studio (the Community Edition is sufficient).
5453
2. Replace Program.cs with the code provided below.
5554
3. Replace the `accessKey` value with an access key valid for your subscription.

articles/cognitive-services/bing-local-business-search/quickstarts/local-search-java-quickstart.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,14 @@ ms.author: aahi
1414

1515
# Quickstart: Send a query to the Bing Local Business Search API using Java
1616

17-
Use this quickstart to begin sending requests to the Bing Local Business Search API, which is an Azure Cognitive Service. Although this simple application is written in Java, the API is a RESTful Web service compatible with any programming language capable of making HTTP requests and parsing JSON.
17+
Use this quickstart to learn how to send requests to the Bing Local Business Search API, which is an Azure Cognitive Service. Although this simple application is written in Java, the API is a RESTful Web service compatible with any programming language capable of making HTTP requests and parsing JSON.
1818

1919
This example application gets local response data from the API for a search query.
2020

2121
## Prerequisites
2222

23-
* The [Java Development Kit(JDK)](https://www.oracle.com/technetwork/java/javase/downloads/index.html)
24-
25-
You must have a [Cognitive Services API account](https://docs.microsoft.com/azure/cognitive-services/cognitive-services-apis-create-account) with Bing Search APIs. The [free trial](https://azure.microsoft.com/try/cognitive-services/?api=bing-web-search-api) is sufficient for this quickstart. You'll need the access key provided when you activate your free trial. See also [Cognitive Services Pricing - Bing Search API](https://azure.microsoft.com/pricing/details/cognitive-services/search-api/).
23+
* The [Java Development Kit (JDK)](https://www.oracle.com/technetwork/java/javase/downloads/index.html).
24+
* A [Cognitive Services API account](https://docs.microsoft.com/azure/cognitive-services/cognitive-services-apis-create-account) with Bing Search APIs. For this quickstart, the [free trial](https://azure.microsoft.com/try/cognitive-services/?api=bing-web-search-api) is sufficient. Save the API key that's provided when you activate your free trial. For more information, see [Cognitive Services Pricing - Bing Search API](https://azure.microsoft.com/pricing/details/cognitive-services/search-api/).
2625

2726

2827
## Create the request
@@ -45,7 +44,7 @@ The following code creates a `WebRequest`, sets the access key header, and adds
4544
4645
## Run the complete application
4746
48-
The Bing Local Business Search API returns results from the Bing search engine.
47+
The following code uses the Bing Local Business Search API to return search results from the Bing search engine. Run this code by following these steps:
4948
1. Download or install the gson library.
5049
2. Create a new Java project in your favorite IDE or editor.
5150
3. Add the code provided below.

articles/cognitive-services/bing-local-business-search/quickstarts/local-search-node-quickstart.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,16 @@ ms.author: aahi
1414

1515
# Quickstart: Send a query to the Bing Local Business Search API using Node.js
1616

17-
Use this quickstart to begin sending requests to the Bing Local Business Search API, which is an Azure Cognitive Service. Although this simple application is written in Node.js, the API is a RESTful Web service compatible with any programming language capable of making HTTP requests and parsing JSON.
17+
Use this quickstart to learn how to send requests to the Bing Local Business Search API, which is an Azure Cognitive Service. Although this simple application is written in Node.js, the API is a RESTful Web service compatible with any programming language capable of making HTTP requests and parsing JSON.
1818

1919
This example application gets local response data from the API for a search query.
2020

2121
## Prerequisites
2222

2323
* The latest version of [Node.js](https://nodejs.org/en/download/).
24-
2524
* The [JavaScript Request Library](https://github.com/request/request).
25+
* A [Cognitive Services API account](https://docs.microsoft.com/azure/cognitive-services/cognitive-services-apis-create-account) with Bing Search APIs. For this quickstart, the [free trial](https://azure.microsoft.com/try/cognitive-services/?api=bing-web-search-api) is sufficient. Save the API key that's provided when you activate your free trial. For more information, see [Cognitive Services Pricing - Bing Search API](https://azure.microsoft.com/pricing/details/cognitive-services/search-api/).
2626

27-
You must have a [Cognitive Services API account](https://docs.microsoft.com/azure/cognitive-services/cognitive-services-apis-create-account) with Bing APIs. The [free trial](https://azure.microsoft.com/try/cognitive-services/?api=bing-web-search-api) is sufficient for this quickstart. Use the access key provided by the free trial. See also [Cognitive Services Pricing - Bing Search API](https://azure.microsoft.com/pricing/details/cognitive-services/search-api/).
2827

2928
## Code scenario
3029

@@ -36,7 +35,6 @@ The following code defines and sends the request, which is implemented in the fo
3635
4. Define the Search function that creates the request and adds the `Ocp-Apim-Subscription-Key` header.
3736
5. Run the search function.
3837

39-
The complete code for this demo is as follows:
4038

4139
```javascript
4240
'use strict';

articles/cognitive-services/bing-local-business-search/quickstarts/local-search-python-quickstart.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,18 @@ ms.author: aahi
1313
---
1414
# Quickstart: Send a query to the Bing Local Business Search API in Python
1515

16-
Use this quickstart to begin sending requests to the Bing Local Business Search API, which is an Azure Cognitive Service. Although this simple application is written in Python, the API is a RESTful Web service compatible with any programming language capable of making HTTP requests and parsing JSON.
16+
Use this quickstart to learn how to send requests to the Bing Local Business Search API, which is an Azure Cognitive Service. Although this simple application is written in Python, the API is a RESTful Web service compatible with any programming language capable of making HTTP requests and parsing JSON.
1717

1818
This example application gets local response data from the API for a search query.
1919

2020
## Prerequisites
2121

22-
* [Python](https://www.python.org/) 2.x or 3.x
23-
24-
You must have a [Cognitive Services API account](https://docs.microsoft.com/azure/cognitive-services/cognitive-services-apis-create-account) with Bing APIs. The [free trial](https://azure.microsoft.com/try/cognitive-services/?api=bing-web-search-api) is sufficient for this quickstart. Use the access key provided by the free trial. See also [Cognitive Services Pricing - Bing Search API](https://azure.microsoft.com/pricing/details/cognitive-services/search-api/).
22+
* [Python](https://www.python.org/) 2.x or 3.x.
23+
* A [Cognitive Services API account](https://docs.microsoft.com/azure/cognitive-services/cognitive-services-apis-create-account) with Bing Search APIs. For this quickstart, the [free trial](https://azure.microsoft.com/try/cognitive-services/?api=bing-web-search-api) is sufficient. Save the API key that's provided when you activate your free trial. For more information, see [Cognitive Services Pricing - Bing Search API](https://azure.microsoft.com/pricing/details/cognitive-services/search-api/).
2524

2625
## Run the complete application
2726

28-
The following code gets localized results, which are implemented in the following steps:
27+
The following example gets localized results, which are implemented in the following steps:
2928
1. Declare variables to specify the endpoint by host and path.
3029
2. Specify the query parameter.
3130
3. Define the search function that creates the request and adds the `Ocp-Apim-Subscription-Key` header.

0 commit comments

Comments
 (0)