Skip to content

Commit 1a0f533

Browse files
author
dksimpson
committed
Edits
1 parent bf0a0ac commit 1a0f533

File tree

7 files changed

+20
-20
lines changed

7 files changed

+20
-20
lines changed

articles/cognitive-services/Bing-Web-Search/quickstarts/csharp.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ manager: nitinme
88
ms.service: cognitive-services
99
ms.subservice: bing-web-search
1010
ms.topic: quickstart
11-
ms.date: 05/20/2020
11+
ms.date: 05/22/2020
1212
ms.author: aahi
1313
ms.custom: seodec2018
1414
#Customer intent: As a new developer, I want to make my first call to the Bing Web Search API and receive a response using C#.
@@ -82,7 +82,7 @@ const string searchTerm = "Microsoft Cognitive Services";
8282

8383
The `Main()` method is required and is the first method invoked when you start the program. In this application, the main method validates the `accessKey`, makes a request, and prints the response.
8484

85-
Keep in mind that `main()` is dependent on methods that you create in the next sections.
85+
The `main()` method is dependent on methods that you create in the next sections.
8686

8787
```csharp
8888
static void Main()
@@ -160,7 +160,7 @@ static SearchResult BingWebSearch(string searchQuery)
160160

161161
## Format the response
162162

163-
This method formats the JSON response, by primarily indenting and adding line breaks.
163+
This method formats the JSON response, primarily by indenting and adding line breaks.
164164

165165
```csharp
166166
/// <summary>

articles/cognitive-services/Bing-Web-Search/quickstarts/go.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ manager: nitinme
88
ms.service: cognitive-services
99
ms.subservice: bing-web-search
1010
ms.topic: quickstart
11-
ms.date: 05/20/2020
11+
ms.date: 05/22/2020
1212
ms.author: aahi
1313
ms.reviewer: [email protected], v-gedod, erhopf
1414
ms.custom: seodec2018
@@ -109,7 +109,7 @@ type BingAnswer struct {
109109

110110
This code declares the main function and sets the required variables:
111111

112-
1. For `endpoint` value, you can use the global endpoint in the following code, or use the [custom subdomain](../../../cognitive-services/cognitive-services-custom-subdomains.md) endpoint displayed in the Azure portal for your resource.
112+
1. For the `endpoint` value, you can use the global endpoint in the following code, or use the [custom subdomain](../../../cognitive-services/cognitive-services-custom-subdomains.md) endpoint displayed in the Azure portal for your resource.
113113

114114
2. Confirm that the endpoint is correct and replace the `token` value with a valid subscription key from your Azure account.
115115

@@ -172,7 +172,7 @@ if err != nil {
172172

173173
## Handle the response
174174

175-
We'll now use the struct we created previously to format the response and print the search results.
175+
Use the struct we created previously to format the response and print the search results.
176176

177177
```go
178178
// Create a new answer.
@@ -309,7 +309,7 @@ func main() {
309309

310310
## Example JSON response
311311

312-
Responses from the Bing Web Search API are returned as JSON. This sample response has been formatted using the `BingAnswer` struct and shows the `result.Name` and `result.URL`.
312+
Responses from the Bing Web Search API are returned as JSON. This sample response has been formatted by using the `BingAnswer` struct and shows the `result.Name` and `result.URL`.
313313

314314
```go
315315
Microsoft Cognitive Services || https://www.microsoft.com/cognitive-services

articles/cognitive-services/Bing-Web-Search/quickstarts/java.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ manager: nitinme
88
ms.service: cognitive-services
99
ms.subservice: bing-web-search
1010
ms.topic: quickstart
11-
ms.date: 05/20/2020
11+
ms.date: 05/22/2020
1212
ms.author: aahi
1313
ms.custom: seodec2018, seo-java-july2019, seo-java-august2019, seo-java-september2019
1414
#Customer intent: As a new developer, I want to make my first call to the Bing Web Search API and receive a response using Java.
@@ -45,7 +45,7 @@ import com.google.gson.JsonParser;
4545

4646
### Declare Gson in the Maven POM file
4747

48-
If you're using Maven, declare Gson in the `POM.xml`. Skip this step if you've installed Gson locally.
48+
If you're using Maven, declare Gson in POM.xml. Skip this step if you've installed Gson locally.
4949

5050
```xml
5151
<dependency>
@@ -93,7 +93,7 @@ static String searchTerm = "Microsoft Cognitive Services";
9393

9494
## Construct a request
9595

96-
The `SsearchWeb()` method, which is included in the `BingWebSearch` class, constructs the `url`, receives and parses the response, and extracts Bing-related HTTP headers.
96+
The `SearchWeb()` method, which is included in the `BingWebSearch` class, constructs the `url`, receives and parses the response, and extracts Bing-related HTTP headers.
9797

9898
```java
9999
public static SearchResults SearchWeb (String searchQuery) throws Exception {
@@ -139,7 +139,7 @@ public static String prettify(String json_text) {
139139

140140
## Declare the main method
141141

142-
The `main()` method is required and is the first method invoked when you start the program. In this application, it includes code that validates the `subscriptionKey`, makes a request, and prints the JSON response.
142+
The `main()` method is required and is the first method invoked when you start the program. In this application, it includes code that validates the `subscriptionKey`, makes a request, and then prints the JSON response.
143143

144144
```java
145145
public static void main (String[] args) {

articles/cognitive-services/Bing-Web-Search/quickstarts/nodejs.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ manager: nitinme
88
ms.service: cognitive-services
99
ms.subservice: bing-web-search
1010
ms.topic: quickstart
11-
ms.date: 05/20/2020
11+
ms.date: 05/22/2020
1212
ms.author: aahi
1313
ms.custom: seodec2018
1414
#Customer intent: As a new developer, I want to make my first call to the Bing Web Search API and receive a response using Node.js.
@@ -60,7 +60,7 @@ This function makes a secure GET request and saves the search query as a query p
6060

6161
3. The callback receives a [response](https://nodejs.org/dist/latest-v10.x/docs/api/http.html#http_class_http_serverresponse) that subscribes to the `data` event to aggregate the JSON body, the `error` event to log any issues, and the `end` event to know when the message should be considered complete.
6262

63-
4. When the app is complete, it prints the interesting headers and message body. You can adjust the colors and set the depth to suit your preference. A depth of `1` gives a nice summary of the response.
63+
4. When the app is complete, it prints the relevant headers and message body. You can adjust the colors and set the depth to suit your preference. A depth of `1` gives a nice summary of the response.
6464

6565
```javascript
6666
function bingWebSearch(query) {
@@ -98,7 +98,7 @@ const query = process.argv[2] || 'Microsoft Cognitive Services'
9898

9999
## Make a request and print the response
100100

101-
And now that everything is defined, let's call our function.
101+
Now that everything is defined, let's call our function.
102102

103103
```javascript
104104
bingWebSearch(query)

articles/cognitive-services/Bing-Web-Search/quickstarts/php.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ manager: nitinme
88
ms.service: cognitive-services
99
ms.subservice: bing-web-search
1010
ms.topic: quickstart
11-
ms.date: 05/20/2020
11+
ms.date: 05/22/2020
1212
ms.author: aahi
1313
ms.custom: seodec2018
1414
#Customer intent: As a new developer, I want to make my first call to the Bing Web Search API and receive a response using PHP.
@@ -29,7 +29,7 @@ Here are a few things that you'll need before running this quickstart:
2929

3030
## Enable secure HTTP support
3131

32-
Before we get started, locate `php.ini` and uncomment this line:
32+
Before we get started, locate php.ini and uncomment this line:
3333

3434
```php
3535
; extension=php_openssl.dll

articles/cognitive-services/Bing-Web-Search/quickstarts/python.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ manager: nitinme
88
ms.service: cognitive-services
99
ms.subservice: bing-web-search
1010
ms.topic: quickstart
11-
ms.date: 05/20/2020
11+
ms.date: 05/22/2020
1212
ms.author: aahi
1313
ms.custom: seodec2018
1414
#Customer intent: As a new developer, I want to make my first call to the Bing Web Search API and receive a response using Python.
@@ -18,7 +18,7 @@ ms.custom: seodec2018
1818

1919
Use this quickstart to make your first call to the Bing Web Search API. This Python application sends a search request to the API, and shows the JSON response. Although this application is written in Python, the API is a RESTful Web service compatible with most programming languages.
2020

21-
This example is run as a Jupyter notebook on [MyBinder](https://mybinder.org). Select the launch binder badge:
21+
This example is run as a Jupyter notebook on [MyBinder](https://mybinder.org). To run it, select the launch binder badge:
2222

2323
[![Binder](https://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/Microsoft/cognitive-services-notebooks/master?filepath=BingWebSearchAPI.ipynb)
2424

@@ -67,7 +67,7 @@ search_results = response.json()
6767

6868
## Format and display the response
6969

70-
The `search_results` object includes the search results and metadata such as related queries and pages. This code uses the `IPython.display` library to format and display the response in your browser.
70+
The `search_results` object includes the search results, and such metadata as related queries and pages. This code uses the `IPython.display` library to format and display the response in your browser.
7171

7272
```python
7373
from IPython.display import HTML

articles/cognitive-services/Bing-Web-Search/quickstarts/ruby.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ manager: nitinme
88
ms.service: cognitive-services
99
ms.subservice: bing-web-search
1010
ms.topic: quickstart
11-
ms.date: 05/20/2020
11+
ms.date: 05/22/2020
1212
ms.author: aahi
1313
ms.custom: seodec2018
1414
#Customer intent: As a new developer, I want to make my first call to the Bing Web Search API and receive a response using Ruby.

0 commit comments

Comments
 (0)