You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/cognitive-services/bing-local-business-search/quickstarts/local-quickstart.md
+3-4Lines changed: 3 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,16 +14,15 @@ ms.author: aahi
14
14
15
15
# Quickstart: Send a query to the Bing Local Business Search API in C#
16
16
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.
18
18
19
19
This example application gets local response data from the API for a search query.
20
20
21
21
## Prerequisites
22
22
23
23
* Any edition of [Visual Studio 2019](https://www.visualstudio.com/downloads/).
24
24
* 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/).
27
26
28
27
## Create the request
29
28
@@ -49,7 +48,7 @@ The following code creates a `WebRequest`, sets the access key header, and adds
49
48
50
49
## Run the complete application
51
50
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:
53
52
1. Create a new console solution in Visual Studio (the Community Edition is sufficient).
54
53
2. Replace Program.cs with the code provided below.
55
54
3. Replace the `accessKey` value with an access key valid for your subscription.
Copy file name to clipboardExpand all lines: articles/cognitive-services/bing-local-business-search/quickstarts/local-search-java-quickstart.md
+4-5Lines changed: 4 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,15 +14,14 @@ ms.author: aahi
14
14
15
15
# Quickstart: Send a query to the Bing Local Business Search API using Java
16
16
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.
18
18
19
19
This example application gets local response data from the API for a search query.
20
20
21
21
## Prerequisites
22
22
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/).
26
25
27
26
28
27
## Create the request
@@ -45,7 +44,7 @@ The following code creates a `WebRequest`, sets the access key header, and adds
45
44
46
45
## Run the complete application
47
46
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:
49
48
1. Download or install the gson library.
50
49
2. Create a new Java project in your favorite IDE or editor.
Copy file name to clipboardExpand all lines: articles/cognitive-services/bing-local-business-search/quickstarts/local-search-node-quickstart.md
+2-4Lines changed: 2 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,17 +14,16 @@ ms.author: aahi
14
14
15
15
# Quickstart: Send a query to the Bing Local Business Search API using Node.js
16
16
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.
18
18
19
19
This example application gets local response data from the API for a search query.
20
20
21
21
## Prerequisites
22
22
23
23
* The latest version of [Node.js](https://nodejs.org/en/download/).
24
-
25
24
* 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/).
26
26
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/).
28
27
29
28
## Code scenario
30
29
@@ -36,7 +35,6 @@ The following code defines and sends the request, which is implemented in the fo
36
35
4. Define the Search function that creates the request and adds the `Ocp-Apim-Subscription-Key` header.
Copy file name to clipboardExpand all lines: articles/cognitive-services/bing-local-business-search/quickstarts/local-search-python-quickstart.md
+4-5Lines changed: 4 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,19 +13,18 @@ ms.author: aahi
13
13
---
14
14
# Quickstart: Send a query to the Bing Local Business Search API in Python
15
15
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.
17
17
18
18
This example application gets local response data from the API for a search query.
19
19
20
20
## Prerequisites
21
21
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/).
25
24
26
25
## Run the complete application
27
26
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:
29
28
1. Declare variables to specify the endpoint by host and path.
30
29
2. Specify the query parameter.
31
30
3. Define the search function that creates the request and adds the `Ocp-Apim-Subscription-Key` header.
0 commit comments