Skip to content

Commit 9322567

Browse files
author
dksimpson
committed
Edits, add resource include
1 parent f40ddfe commit 9322567

File tree

7 files changed

+52
-50
lines changed

7 files changed

+52
-50
lines changed

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Define a `SearchResult` struct to contain the image search results and JSON head
7171

7272
## Create a method to send search requests
7373

74-
Create a method named `BingImageSearch` to perform the call to the API, and set the return type to the `SearchResult` struct created earlier.
74+
Create a method named `BingImageSearch` to perform the call to the API, and set the return type to the `SearchResult` struct created previously.
7575

7676
```csharp
7777
//...
@@ -149,7 +149,7 @@ In the `BingImageSearch` method, perform the following steps:
149149

150150
## Example JSON response
151151

152-
Responses from the Bing Image Search API are returned as JSON. This sample response has been truncated to show a single result:
152+
Responses from the Bing Image Search API are returned as JSON. This sample response has been truncated to show a single result.
153153

154154
```json
155155
{
@@ -203,8 +203,8 @@ Responses from the Bing Image Search API are returned as JSON. This sample respo
203203
## See also
204204

205205
* [What is Bing Image Search?](https://docs.microsoft.com/azure/cognitive-services/bing-image-search/overview)
206-
* [Try an online interactive demo](https://azure.microsoft.com/services/cognitive-services/bing-image-search-api/)
207-
* [Pricing details](https://azure.microsoft.com/pricing/details/cognitive-services/search-api/) for the Bing Search APIs.
208-
* [Get a free Cognitive Services access key](https://azure.microsoft.com/try/cognitive-services/?api=bing-image-search-api)
209-
* [Azure Cognitive Services Documentation](https://docs.microsoft.com/azure/cognitive-services)
210-
* [Bing Image Search API reference](https://docs.microsoft.com/rest/api/cognitiveservices-bingsearch/bing-images-api-v7-reference)
206+
* [Try an online interactive demo](https://azure.microsoft.com/services/cognitive-services/bing-image-search-api/).
207+
* [Pricing details for the Bing Search APIs](https://azure.microsoft.com/pricing/details/cognitive-services/search-api/).
208+
* [Get a free Cognitive Services access key](https://azure.microsoft.com/try/cognitive-services/?api=bing-image-search-api).
209+
* [Azure Cognitive Services documentation](https://docs.microsoft.com/azure/cognitive-services).
210+
* [Bing Image Search API reference](https://docs.microsoft.com/rest/api/cognitiveservices-bingsearch/bing-images-api-v7-reference).

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ms.date: 05/08/2020
1313
ms.author: aahi
1414
ms.custom: seodec2018, seo-java-july2019, seo-java-august2019, seo-java-september2019
1515
---
16-
# Quickstart: Search for images with the Bing Image Search API, an Azure cognitive service
16+
# Quickstart: Search for images with the Bing Image Search API and Java
1717

1818
Use this quickstart to learn how to send search requests to the Bing Image Search API in Azure Cognitive Services. This Java application sends a search query to the API, and displays the URL of the first image in the results. Although this application is written in Java, the API is a RESTful web service compatible with most programming languages.
1919

@@ -53,7 +53,7 @@ The source code for this sample is available [on GitHub](https://github.com/Azur
5353

5454
## Construct the search request and query
5555

56-
1. Use the variables from the previous step to format a search URL for the API request. URL-encode the search term before you appended it to the request.
56+
Use the variables from the previous step to format a search URL for the API request. URL-encode the search term before you appended it to the request.
5757

5858
```java
5959
// construct the search request URL (in the form of endpoint + query string)
@@ -73,7 +73,7 @@ The source code for this sample is available [on GitHub](https://github.com/Azur
7373
// construct result object for return
7474
SearchResults results = new SearchResults(new HashMap<String, String>(), response);
7575
```
76-
2. Separate the Bing-related HTTP headers from the JSON body.\
76+
2. Separate the Bing-related HTTP headers from the JSON body.
7777

7878
```java
7979
// extract Bing-related HTTP headers
@@ -102,7 +102,7 @@ The source code for this sample is available [on GitHub](https://github.com/Azur
102102

103103
## Example JSON response
104104

105-
Responses from the Bing Image Search API are returned as JSON. This sample response has been truncated to show a single result:
105+
Responses from the Bing Image Search API are returned as JSON. This sample response has been truncated to show a single result.
106106

107107
```json
108108
{
@@ -156,8 +156,8 @@ Responses from the Bing Image Search API are returned as JSON. This sample respo
156156
## See also
157157

158158
* [What is Bing Image Search?](https://docs.microsoft.com/azure/cognitive-services/bing-image-search/overview)
159-
* [Try an online interactive demo](https://azure.microsoft.com/services/cognitive-services/bing-image-search-api/)
160-
* [Pricing details](https://azure.microsoft.com/pricing/details/cognitive-services/search-api/) for the Bing Search APIs.
161-
* [Get a free Cognitive Services access key](https://azure.microsoft.com/try/cognitive-services/?api=bing-image-search-api)
162-
* [Azure Cognitive Services Documentation](https://docs.microsoft.com/azure/cognitive-services)
163-
* [Bing Image Search API reference](https://docs.microsoft.com/rest/api/cognitiveservices-bingsearch/bing-images-api-v7-reference)
159+
* [Try an online interactive demo](https://azure.microsoft.com/services/cognitive-services/bing-image-search-api/).
160+
* [Pricing details for the Bing Search APIs](https://azure.microsoft.com/pricing/details/cognitive-services/search-api/).
161+
* [Get a free Cognitive Services access key](https://azure.microsoft.com/try/cognitive-services/?api=bing-image-search-api).
162+
* [Azure Cognitive Services documentation](https://docs.microsoft.com/azure/cognitive-services).
163+
* [Bing Image Search API reference](https://docs.microsoft.com/rest/api/cognitiveservices-bingsearch/bing-images-api-v7-reference).

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

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Quickstart: Search for images using the Bing Image Search REST API and Node.js"
33
titleSuffix: Azure Cognitive Services
4-
description: Use this quickstart to send image search requests to the Bing Image Search REST API using JavaScript, and receive a JSON response.
4+
description: Use this quickstart to send image search requests to the Bing Image Search REST API using JavaScript, and JSON responses.
55
services: cognitive-services
66
documentationcenter: ''
77
author: aahill
@@ -71,16 +71,18 @@ For more information, see [Cognitive Services Pricing - Bing Search API](https:/
7171

7272
## Handle and parse the response
7373

74-
1. Define a function named `response_handler` that takes an HTTP call, `response`, as a parameter. Do the following steps within this function:
74+
1. Define a function named `response_handler` that takes an HTTP call, `response`, as a parameter.
75+
76+
2. Within this function, define a variable to contain the body of the JSON response.
7577

76-
2. Within this function, define a variable to contain the body of the JSON response.
7778
```javascript
7879
let response_handler = function (response) {
7980
let body = '';
8081
};
8182
```
8283

83-
3. Store the body of the response when the `data` flag is called
84+
3. Store the body of the response when the `data` flag is called.
85+
8486
```javascript
8587
response.on('data', function (d) {
8688
body += d;
@@ -100,7 +102,7 @@ For more information, see [Cognitive Services Pricing - Bing Search API](https:/
100102

101103
## Example JSON response
102104

103-
Responses from the Bing Image Search API are returned as JSON. This sample response has been truncated to show a single result:
105+
Responses from the Bing Image Search API are returned as JSON. This sample response has been truncated to show a single result.
104106

105107
```json
106108
{
@@ -154,8 +156,8 @@ Responses from the Bing Image Search API are returned as JSON. This sample respo
154156
## See also
155157

156158
* [What is Bing Image Search?](https://docs.microsoft.com/azure/cognitive-services/bing-image-search/overview)
157-
* [Try an online interactive demo](https://azure.microsoft.com/services/cognitive-services/bing-image-search-api/)
158-
* [Pricing details](https://azure.microsoft.com/pricing/details/cognitive-services/search-api/) for the Bing Search APIs.
159-
* [Get a free Cognitive Services access key](https://azure.microsoft.com/try/cognitive-services/?api=bing-image-search-api)
160-
* [Azure Cognitive Services Documentation](https://docs.microsoft.com/azure/cognitive-services)
161-
* [Bing Image Search API reference](https://docs.microsoft.com/rest/api/cognitiveservices-bingsearch/bing-images-api-v7-reference)
159+
* [Try an online interactive demo](https://azure.microsoft.com/services/cognitive-services/bing-image-search-api/).
160+
* [Pricing details for the Bing Search APIs](https://azure.microsoft.com/pricing/details/cognitive-services/search-api/).
161+
* [Get a free Cognitive Services access key](https://azure.microsoft.com/try/cognitive-services/?api=bing-image-search-api).
162+
* [Azure Cognitive Services documentation](https://docs.microsoft.com/azure/cognitive-services).
163+
* [Bing Image Search API reference](https://docs.microsoft.com/rest/api/cognitiveservices-bingsearch/bing-images-api-v7-reference).

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ The source code for this sample is available [on GitHub](https://github.com/Azur
2323

2424
## Prerequisites
2525

26-
* [PHP 5.6.x or later](https://php.net/downloads.php).
26+
* [PHP 5.6.x or later](https://php.net/downloads.php)
2727

2828
[!INCLUDE [cognitive-services-bing-image-search-signup-requirements](../../../../includes/cognitive-services-bing-image-search-signup-requirements.md)]
2929

@@ -79,7 +79,7 @@ $headers = array();
7979

8080
## Example JSON response
8181

82-
Responses from the Bing Image Search API are returned as JSON. This sample response has been truncated to show a single result:
82+
Responses from the Bing Image Search API are returned as JSON. This sample response has been truncated to show a single result.
8383

8484
```json
8585
{
@@ -133,8 +133,8 @@ Responses from the Bing Image Search API are returned as JSON. This sample respo
133133
## See also
134134

135135
* [What is Bing Image Search?](https://docs.microsoft.com/azure/cognitive-services/bing-image-search/overview)
136-
* [Try an online interactive demo](https://azure.microsoft.com/services/cognitive-services/bing-image-search-api/)
137-
* [Pricing details](https://azure.microsoft.com/pricing/details/cognitive-services/search-api/) for the Bing Search APIs.
138-
* [Get a free Cognitive Services access key](https://azure.microsoft.com/try/cognitive-services/?api=bing-image-search-api)
139-
* [Azure Cognitive Services Documentation](https://docs.microsoft.com/azure/cognitive-services)
140-
* [Bing Image Search API reference](https://docs.microsoft.com/rest/api/cognitiveservices-bingsearch/bing-images-api-v7-reference)
136+
* [Try an online interactive demo](https://azure.microsoft.com/services/cognitive-services/bing-image-search-api/).
137+
* [Pricing details for the Bing Search APIs](https://azure.microsoft.com/pricing/details/cognitive-services/search-api/).
138+
* [Get a free Cognitive Services access key](https://azure.microsoft.com/try/cognitive-services/?api=bing-image-search-api).
139+
* [Azure Cognitive Services documentation](https://docs.microsoft.com/azure/cognitive-services).
140+
* [Bing Image Search API reference](https://docs.microsoft.com/rest/api/cognitiveservices-bingsearch/bing-images-api-v7-reference).

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ The source code for this sample is available [on GitHub](https://github.com/Azur
9494

9595
## Example JSON response
9696

97-
Responses from the Bing Image Search API are returned as JSON. This sample response has been truncated to show a single result:
97+
Responses from the Bing Image Search API are returned as JSON. This sample response has been truncated to show a single result.
9898

9999
```json
100100
{
@@ -146,7 +146,7 @@ Responses from the Bing Image Search API are returned as JSON. This sample respo
146146
> [Bing Image Search single-page app tutorial](../tutorial-bing-image-search-single-page-app.md)
147147

148148
* [What is the Bing Image Search API?](../overview.md)
149-
* [Pricing details](https://azure.microsoft.com/pricing/details/cognitive-services/search-api/) for the Bing Search APIs.
150-
* [Get a free Cognitive Services access key](https://azure.microsoft.com/try/cognitive-services/?api=bing-image-search-api)
151-
* [Azure Cognitive Services Documentation](https://docs.microsoft.com/azure/cognitive-services)
152-
* [Bing Image Search API reference](https://docs.microsoft.com/rest/api/cognitiveservices-bingsearch/bing-images-api-v7-reference)
149+
* [Pricing details for the Bing Search APIs](https://azure.microsoft.com/pricing/details/cognitive-services/search-api/).
150+
* [Get a free Cognitive Services access key](https://azure.microsoft.com/try/cognitive-services/?api=bing-image-search-api).
151+
* [Azure Cognitive Services documentation](https://docs.microsoft.com/azure/cognitive-services).
152+
* [Bing Image Search API reference](https://docs.microsoft.com/rest/api/cognitiveservices-bingsearch/bing-images-api-v7-reference).

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ puts "Url to the thumbnail of the first returned search result: #{first_result}"
8585

8686
## Example JSON response
8787

88-
Responses from the Bing Image Search API are returned as JSON. This sample response has been truncated to show a single result:
88+
Responses from the Bing Image Search API are returned as JSON. This sample response has been truncated to show a single result.
8989

9090
```json
9191
{
@@ -140,7 +140,7 @@ Responses from the Bing Image Search API are returned as JSON. This sample respo
140140
## See also
141141

142142
* [What is Bing Image Search?](https://docs.microsoft.com/azure/cognitive-services/bing-image-search/overview)
143-
* [Try an online interactive demo](https://azure.microsoft.com/services/cognitive-services/bing-image-search-api/)
144-
* [Get a free Cognitive Services access key](https://azure.microsoft.com/try/cognitive-services/?api=bing-image-search-api)
145-
* [Azure Cognitive Services Documentation](https://docs.microsoft.com/azure/cognitive-services)
146-
* [Bing Image Search API reference](https://docs.microsoft.com/rest/api/cognitiveservices-bingsearch/bing-images-api-v7-reference)
143+
* [Try an online interactive demo](https://azure.microsoft.com/services/cognitive-services/bing-image-search-api/).
144+
* [Get a free Cognitive Services access key](https://azure.microsoft.com/try/cognitive-services/?api=bing-image-search-api).
145+
* [Azure Cognitive Services documentation](https://docs.microsoft.com/azure/cognitive-services).
146+
* [Bing Image Search API reference](https://docs.microsoft.com/rest/api/cognitiveservices-bingsearch/bing-images-api-v7-reference).

includes/cognitive-services-bing-image-search-signup-requirements.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@ author: aahill
33
ms.author: aahi
44
ms.service: cognitive-services
55
ms.topic: include
6-
ms.date: 12/06/2019
6+
ms.date: 05/08/2020
77
---
88
## Create an Azure resource
99

10-
Start using the Bing Image Search API by creating one of the Azure resources below.
10+
Start using the Bing Image Search API by creating one of the following Azure resources:
1111

12-
* [Create a trial resource](https://azure.microsoft.com/try/cognitive-services/?api=bing-web-search-api):
13-
* No Azure subscription needed.
14-
* Valid for seven days, for free. After signing up, a trial key and endpoint will be available on the [Azure website](https://azure.microsoft.com/try/cognitive-services/my-apis/).
12+
### [Trial resource](https://azure.microsoft.com/try/cognitive-services/?api=bing-web-search-api)
13+
* No Azure subscription is needed.
14+
* Valid for seven days, for free. After you sign up, a trial key and endpoint are available on the [Azure website](https://azure.microsoft.com/try/cognitive-services/my-apis/).
1515

16-
* [Create Bing Search v7 resource](https://ms.portal.azure.com/#create/Microsoft.CognitiveServicesBingSearch-v7):
16+
### [Bing Search v7 resource](https://ms.portal.azure.com/#create/Microsoft.CognitiveServicesBingSearch-v7)
1717
* Available through the Azure portal until you delete the resource.
1818
* Use the free pricing tier to try the service, and upgrade later to a paid tier for production.
1919

20-
* [Create a Multi-Service resource](https://ms.portal.azure.com/#create/Microsoft.CognitiveServicesAllInOne):
20+
### [Multi-service resource](https://ms.portal.azure.com/#create/Microsoft.CognitiveServicesAllInOne)
2121
* Available through the Azure portal until you delete the resource.
2222
* Use the same key and endpoint for your applications, across multiple Cognitive Services.

0 commit comments

Comments
 (0)