Skip to content

Commit 8aa8c06

Browse files
author
dksimpson
committed
Edits
1 parent dfeb63f commit 8aa8c06

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ ms.author: aahi
1414
---
1515
# Quickstart: Search for videos using the Bing Video Search REST API and Java
1616

17-
Use this quickstart to make your first call to the Bing Video Search API. This simple Java application sends an HTTP video search query to the API and displays the JSON response.
17+
Use this quickstart to make your first call to the Bing Video Search API. This simple Java application sends an HTTP video search query to the API and displays the JSON response. Although this application is written in Java, the API is a RESTful Web service compatible with most programming languages.
1818

19-
Although this application is written in Java, the API is a RESTful Web service compatible with most programming languages. The source code for this sample is available [on GitHub](https://github.com/Azure-Samples/cognitive-services-REST-api-samples/blob/master/java/Search/BingVideoSearchv7.java) with additional error handling, features, and code annotations.
19+
The source code for this sample is available [on GitHub](https://github.com/Azure-Samples/cognitive-services-REST-api-samples/blob/master/java/Search/BingVideoSearchv7.java) with additional error handling, features, and code annotations.
2020

2121
## Prerequisites
2222

@@ -103,7 +103,7 @@ In the `SearchVideos()` method, perform the following steps:
103103

104104
## Format the response
105105

106-
1. Create a method named `prettify()` to format the response returned from the Bing Video API. Use the Gson library's `JsonParser` to convert a JSON string to an object. Then, use `GsonBuilder()` and `toJson()` to create the formatted string.
106+
Create a method named `prettify()` to format the response returned from the Bing Video API. Use the Gson library's `JsonParser` to convert a JSON string to an object. Then, use `GsonBuilder()` and `toJson()` to create the formatted string.
107107
108108
```java
109109
// pretty-printer for JSON; uses GSON parser to parse and re-serialize

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ ms.author: aahi
1414
---
1515
# Quickstart: Search for videos using the Bing Video Search REST API and Node.js
1616

17-
Use this quickstart to make your first call to the Bing Video Search API. This simple JavaScript application sends an HTTP video search query to the API, and displays the JSON response.
17+
Use this quickstart to make your first call to the Bing Video Search API. This simple JavaScript application sends an HTTP video search query to the API, and displays the JSON response. Although this application is written in JavaScript and uses Node.js, the API is a RESTful Web service compatible with most programming languages.
1818

19-
Although this application is written in JavaScript and uses Node.js, the API is a RESTful Web service compatible with most programming languages. The source code for this sample is available [on GitHub](https://github.com/Azure-Samples/cognitive-services-REST-api-samples/blob/master/nodejs/Search/BingVideoSearchv7.js) with additional error handling, and code annotations.
19+
The source code for this sample is available [on GitHub](https://github.com/Azure-Samples/cognitive-services-REST-api-samples/blob/master/nodejs/Search/BingVideoSearchv7.js) with additional error handling, and code annotations.
2020

2121
## Prerequisites
2222

@@ -57,7 +57,7 @@ Although this application is written in JavaScript and uses Node.js, the API is
5757
};
5858
```
5959

60-
1. When `end` is signaled, use `response.on()` to store the bing-related headers (beginning with `bingapis` or `x-msedge-`). Parse the JSON using `JSON.parse()`, convert it to a string with `JSON.stringify()`, and print it.
60+
1. In this function, use `response.on()` when `end` is signaled to store the bing-related headers (beginning with `bingapis` or `x-msedge-`). Parse the JSON using `JSON.parse()`, convert it to a string with `JSON.stringify()`, and print it.
6161

6262
```javascript
6363
response.on('end', function () {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ ms.author: aahi
1818
Use this quickstart to make your first call to the Bing Video Search API. This simple JavaScript application sends an HTTP video search query to the API, and displays the JSON response.
1919

2020
Although this application is written in JavaScript and uses Node.js, the API is a RESTful Web service compatible with most programming languages.
21-
The example code was written to work under PHP 5.6.
21+
The example code is written to work under PHP 5.6.
2222

2323
## Prerequisites
2424

@@ -30,7 +30,7 @@ The example code was written to work under PHP 5.6.
3030

3131
The [Bing Video Search API](https://docs.microsoft.com/rest/api/cognitiveservices-bingsearch/bing-web-api-v7-reference) returns video results from the Bing search engine.
3232

33-
1. Enable secure HTTP support in your `php.ini` file by uncommenting the `;extension=php_openssl.dll` line, as described in the code comment.
33+
1. Enable secure HTTP support in your `php.ini` file by uncommenting the `;extension=php_openssl.dll` line, as described in the following code.
3434
2. Create a new PHP project in your favorite IDE or editor.
3535
3. Add the code provided below.
3636
4. Replace the `$accessKey` value with an access key valid for your subscription. You can use the value of `$endpoint` in the following code for the global endpoint, or use the [custom subdomain](../../../cognitive-services/cognitive-services-custom-subdomains.md) endpoint displayed in the Azure portal for your resource.

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

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

1616
# Quickstart: Search for videos using the Bing Video Search REST API and Python
1717

18-
Use this quickstart to make your first call to the Bing Video Search API. This simple Python application sends an HTTP video search query to the API, and displays the JSON response.
18+
Use this quickstart to make your first call to the Bing Video Search API. This simple Python application sends an HTTP video search query to the API, and displays the JSON response. Although this application is written in Python, the API is a RESTful Web service compatible with most programming languages.
1919

20-
Although this application is written in Python, the API is a RESTful Web service compatible with most programming languages. The source code for this sample is available [on GitHub](https://github.com/Azure-Samples/cognitive-services-REST-api-samples/blob/master/python/Search/BingVideoSearchv7.py) with additional error handling, and code annotations.
20+
The source code for this sample is available [on GitHub](https://github.com/Azure-Samples/cognitive-services-REST-api-samples/blob/master/python/Search/BingVideoSearchv7.py) with additional error handling, and code annotations.
2121

22-
You can run this example as a Jupyter notebook on [MyBinder](https://mybinder.org) by selecting the **Launch Binder** badge:
22+
You can run this example as a Jupyter notebook on [MyBinder](https://mybinder.org) by selecting the **launch binder** badge:
2323

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

@@ -32,7 +32,7 @@ You can run this example as a Jupyter notebook on [MyBinder](https://mybinder.or
3232

3333
## Initialize the application
3434

35-
1. Create a new Python file in your favorite IDE or editor and import the following libraries:
35+
1. Create a new Python file in your favorite IDE or editor, and import the following libraries:
3636

3737
```python
3838
import requests

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ ms.author: aahi
1515

1616
# Quickstart: Search for videos using the Bing Video Search REST API and Ruby
1717

18-
Use this quickstart to make your first call to the Bing Video Search API. This simple Ruby application sends an HTTP video search query to the API, and displays the JSON response.
18+
Use this quickstart to make your first call to the Bing Video Search API. This simple Ruby application sends an HTTP video search query to the API, and displays the JSON response. Although this application is written in Python, the API is a RESTful Web service compatible with most programming languages.
1919

20-
Although this application is written in Python, the API is a RESTful Web service compatible with most programming languages. The source code for this sample is available [on GitHub](https://github.com/Azure-Samples/cognitive-services-REST-api-samples/blob/master/ruby/Search/BingVideoSearchv7.rb) with additional error handling, and code annotations.
20+
The source code for this sample is available [on GitHub](https://github.com/Azure-Samples/cognitive-services-REST-api-samples/blob/master/ruby/Search/BingVideoSearchv7.rb) with additional error handling, and code annotations.
2121

2222
## Prerequisites
2323

0 commit comments

Comments
 (0)