Skip to content

Commit 110fda0

Browse files
authored
Merge pull request #106480 from john-par/1678688-adding-zone-pivots-bing-image-search
1678688, adding zone pivots bing image search
2 parents 4730b28 + f292dd8 commit 110fda0

File tree

8 files changed

+94
-59
lines changed

8 files changed

+94
-59
lines changed

.openpublishing.redirection.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1701,6 +1701,26 @@
17011701
"redirect_url": "/azure/cognitive-services/bing-web-search/quickstarts/client-libraries?pivots=programming-language-python",
17021702
"redirect_document_id": false
17031703
},
1704+
{
1705+
"source_path": "articles/cognitive-services/Bing-Image-Search/image-search-sdk-quickstart.md",
1706+
"redirect_url": "/azure/cognitive-services/bing-image-search/quickstarts/client-libraries?pivots=programming-language-csharp",
1707+
"redirect_document_id": false
1708+
},
1709+
{
1710+
"source_path": "articles/cognitive-services/Bing-Image-Search/image-sdk-java-quickstart.md",
1711+
"redirect_url": "/azure/cognitive-services/bing-image-search/quickstarts/client-libraries?pivots=programming-language-java",
1712+
"redirect_document_id": false
1713+
},
1714+
{
1715+
"source_path": "articles/cognitive-services/Bing-Image-Search/image-search-sdk-node-quickstart.md",
1716+
"redirect_url": "/azure/cognitive-services/bing-image-search/quickstarts/client-libraries?pivots=programming-language-javascript",
1717+
"redirect_document_id": false
1718+
},
1719+
{
1720+
"source_path": "articles/cognitive-services/Bing-Image-Search/image-sdk-python-quickstart.md",
1721+
"redirect_url": "/azure/cognitive-services/bing-image-search/quickstarts/client-libraries?pivots=programming-language-python",
1722+
"redirect_document_id": false
1723+
},
17041724
{
17051725
"source_path": "articles/virtual-machines/linux/classic/rdma-cluster.md",
17061726
"redirect_url": "/azure/virtual-machines/linux/sizes-hpc#rdma-capable-instances",

articles/cognitive-services/Bing-Image-Search/image-search-sdk-quickstart.md renamed to articles/cognitive-services/Bing-Image-Search/includes/quickstarts/image-search-client-library-csharp.md

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,26 @@
11
---
2-
title: "Quickstart: Search for images - Bing Image Search SDK for C#"
2+
title: Bing Image Search C# client library quickstart
33
titleSuffix: Azure Cognitive Services
4-
description: Use this quickstart to make your first image search using the Bing Image Search SDK, which is a wrapper for the API and contains the same features. This simple C# application sends an image search query, parses the JSON response, and displays the URL of the first image returned.
54
services: cognitive-services
65
author: aahill
76
manager: nitinme
87
ms.service: cognitive-services
9-
ms.subservice: bing-image-search
10-
ms.topic: quickstart
11-
ms.date: 12/06/2019
8+
ms.topic: include
9+
ms.date: 03/04/2020
1210
ms.author: aahi
13-
ms.custom: seodec2018
1411
---
1512

16-
# Quickstart: Search for images with the Bing Image Search SDK for C#
17-
18-
Use this quickstart to make your first image search using the Bing Image Search SDK, which is a wrapper for the API and contains the same features. This simple C# application sends an image search query, parses the JSON response, and displays the URL of the first image returned.
13+
Use this quickstart to make your first image search using the Bing Image Search client library, which is a wrapper for the API and contains the same features. This simple C# application sends an image search query, parses the JSON response, and displays the URL of the first image returned.
1914

2015
The source code for this sample is available [on GitHub](https://github.com/Azure-Samples/cognitive-services-dotnet-sdk-samples/tree/master/BingSearchv7/BingImageSearch) with additional error handling and annotations.
2116

2217
## Prerequisites
2318
* Any edition of [Visual Studio 2017 or later](https://visualstudio.microsoft.com/vs/whatsnew/).
24-
* The [Cognitive Image Search NuGet package](https://www.nuget.org/packages/Microsoft.Azure.CognitiveServices.Search.ImageSearch/1.2.0).
19+
* The [Cognitive Image Search NuGet package](https://www.nuget.org/packages/Microsoft.Azure.CognitiveServices.Search.ImageSearch/).
2520

26-
To install the Bing Image Search SDK in Visual Studio, use the **Manage NuGet Packages** option from **Solution Explorer**.
21+
To install the Bing Image Search client library in Visual Studio, use the **Manage NuGet Packages** option from **Solution Explorer**.
2722

28-
[!INCLUDE [cognitive-services-bing-image-search-signup-requirements](../../../includes/cognitive-services-bing-image-search-signup-requirements.md)]
23+
[!INCLUDE [cognitive-services-bing-image-search-signup-requirements](~/includes/cognitive-services-bing-image-search-signup-requirements.md)]
2924

3025
See also [Cognitive Services Pricing - Bing Search API](https://azure.microsoft.com/pricing/details/cognitive-services/search-api/).
3126

@@ -51,7 +46,7 @@ Images imageResults = null;
5146
string searchTerm = "canadian rockies";
5247

5348
//initialize the client
54-
//NOTE: If you're using version 1.2.0 or below for the Bing Image Search SDK,
49+
//NOTE: If you're using version 1.2.0 or below for the Bing Image Search client library,
5550
// use ImageSearchAPI() instead of ImageSearchClient() to initialize your search client.
5651
5752
var client = new ImageSearchClient(new ApiKeyServiceClientCredentials(subscriptionKey));

articles/cognitive-services/Bing-Image-Search/image-sdk-java-quickstart.md renamed to articles/cognitive-services/Bing-Image-Search/includes/quickstarts/image-search-client-library-java.md

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,24 @@
11
---
2-
title: "Quickstart: Search for images - Bing Image Search SDK for Java"
2+
title: Bing Image Search Java client library quickstart
33
titleSuffix: Azure Cognitive Services
4-
description: Use this quickstart to make your first image search using the Bing Image Search SDK, which is a wrapper for the API and contains the same features. This simple Java application sends an image search query, parses the JSON response, and displays the URL of the first image returned.
54
services: cognitive-services
65
author: aahill
76
manager: nitinme
87
ms.service: cognitive-services
9-
ms.subservice: bing-image-search
10-
ms.topic: quickstart
11-
ms.date: 12/06/2019
8+
ms.topic: include
9+
ms.date: 03/04/2020
1210
ms.author: aahi
13-
ms.custom: seodec2018
1411
---
1512

16-
# Quickstart: Search for images with the Bing Image Search SDK for Java
17-
18-
Use this quickstart to make your first image search using the Bing Image Search SDK, which is a wrapper for the API and contains the same features. This simple Java application sends an image search query, parses the JSON response, and displays the URL of the first image returned.
13+
Use this quickstart to make your first image search using the Bing Image Search client library, which is a wrapper for the API and contains the same features. This simple Java application sends an image search query, parses the JSON response, and displays the URL of the first image returned.
1914

2015
The source code for this sample is available [on GitHub](https://github.com/Azure-Samples/cognitive-services-java-sdk-samples/tree/master/Search/BingImageSearch/Quickstart) with additional error handling and annotations.
2116

2217
## Prerequisites
2318

2419
The latest version of the [Java Development Kit](https://aka.ms/azure-jdks) (JDK)
2520

26-
Install the Bing Image Search SDK dependencies by using Maven, Gradle, or another dependency management system. The Maven POM file requires the following declaration:
21+
Install the Bing Image Search client library dependencies by using Maven, Gradle, or another dependency management system. The Maven POM file requires the following declaration:
2722

2823
```xml
2924
<dependencies>
@@ -35,7 +30,7 @@ Install the Bing Image Search SDK dependencies by using Maven, Gradle, or anothe
3530
</dependencies>
3631
```
3732

38-
[!INCLUDE [cognitive-services-bing-image-search-signup-requirements](../../../includes/cognitive-services-bing-image-search-signup-requirements.md)]
33+
[!INCLUDE [cognitive-services-bing-image-search-signup-requirements](~/includes/cognitive-services-bing-image-search-signup-requirements.md)]
3934

4035
## Create and initialize the application
4136

articles/cognitive-services/Bing-Image-Search/image-search-sdk-node-quickstart.md renamed to articles/cognitive-services/Bing-Image-Search/includes/quickstarts/image-search-client-library-javascript.md

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,16 @@
11
---
2-
title: "Quickstart: Search for images - Bing Image Search SDK for Node.js"
2+
title: Bing Image Search JavaScript client library quickstart
33
titleSuffix: Azure Cognitive Services
4-
description: Use this quickstart to make your first image search using the Bing Image Search SDK, which is a wrapper for the API and contains the same features. This simple Node.js application sends an image search query, parses the JSON response, and displays the URL of the first image returned.
54
services: cognitive-services
65
author: aahill
76
manager: nitinme
87
ms.service: cognitive-services
9-
ms.subservice: bing-image-search
10-
ms.topic: quickstart
11-
ms.date: 01/22/2020
8+
ms.topic: include
9+
ms.date: 03/04/2020
1210
ms.author: aahi
13-
ms.custom: seodec2018
1411
---
1512

16-
# Quickstart: Search for images with the Bing Image Search SDK for Node.js
17-
18-
Use this quickstart to make your first image search using the Bing Image Search SDK, which is a wrapper for the API and contains the same features. This simple JavaScript application sends an image search query, parses the JSON response, and displays the URL of the first image returned.
13+
Use this quickstart to make your first image search using the Bing Image Search client library, which is a wrapper for the API and contains the same features. This simple JavaScript application sends an image search query, parses the JSON response, and displays the URL of the first image returned.
1914

2015
The source code for this sample is available on [GitHub](https://github.com/Azure-Samples/cognitive-services-node-sdk-samples/blob/master/Samples/imageSearch.js) with additional error handling and annotations.
2116

@@ -26,7 +21,7 @@ The source code for this sample is available on [GitHub](https://github.com/Azur
2621
* The [Node.js Azure Rest](https://www.npmjs.com/package/ms-rest-azure) module
2722
* Install using `npm install ms-rest-azure`
2823

29-
[!INCLUDE [cognitive-services-bing-image-search-signup-requirements](../../../includes/cognitive-services-bing-image-search-signup-requirements.md)]
24+
[!INCLUDE [cognitive-services-bing-image-search-signup-requirements](~/includes/cognitive-services-bing-image-search-signup-requirements.md)]
3025

3126
## Create and initialize the application
3227

articles/cognitive-services/Bing-Image-Search/image-sdk-python-quickstart.md renamed to articles/cognitive-services/Bing-Image-Search/includes/quickstarts/image-search-client-library-python.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,27 @@
11
---
2-
title: "Quickstart: Search for images - Bing Image Search SDK for Python"
2+
title: Bing Image Search Python client library quickstart
33
titleSuffix: Azure Cognitive Services
4-
description: Use this quickstart to make your first image search using the Bing Image Search SDK, which is a wrapper for the API and contains the same features. This simple Python application sends an image search query, parses the JSON response, and displays the URL of the first image returned.
54
services: cognitive-services
65
author: aahill
76
manager: nitinme
87
ms.service: cognitive-services
9-
ms.subservice: bing-image-search
10-
ms.topic: quickstart
11-
ms.date: 12/06/2019
8+
ms.topic: include
9+
ms.date: 03/04/2020
1210
ms.author: aahi
13-
ms.custom: seodec2018
1411
---
15-
# Quickstart: Search for images with the Bing Image Search SDK for Python
1612

17-
Use this quickstart to make your first image search using the Bing Image Search SDK, which is a wrapper for the API and contains the same features. This simple Python application sends an image search query, parses the JSON response, and displays the URL of the first image returned.
13+
Use this quickstart to make your first image search using the Bing Image Search client library, which is a wrapper for the API and contains the same features. This simple Python application sends an image search query, parses the JSON response, and displays the URL of the first image returned.
1814

1915
The source code for this sample is available [on GitHub](https://github.com/Azure-Samples/cognitive-services-python-sdk-samples/blob/master/samples/search/image-search-quickstart.py) with additional error handling and annotations.
2016

2117
## Prerequisites
2218

2319
* [Python 2.7 or 3.4](https://www.python.org/) and higher.
2420

25-
* The [Azure Image Search SDK](https://pypi.org/project/azure-cognitiveservices-search-imagesearch/) for Python
21+
* The [Azure Image Search client library](https://pypi.org/project/azure-cognitiveservices-search-imagesearch/) for Python
2622
* Install using `pip install azure-cognitiveservices-search-imagesearch`
2723

28-
[!INCLUDE [cognitive-services-bing-image-search-signup-requirements](../../../includes/cognitive-services-bing-image-search-signup-requirements.md)]
24+
[!INCLUDE [cognitive-services-bing-image-search-signup-requirements](~/includes/cognitive-services-bing-image-search-signup-requirements.md)]
2925

3026
## Create and initialize the application
3127

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
title: 'Quickstart: Use the Bing Image Search client library'
3+
titleSuffix: Azure Cognitive Services
4+
description: The Image Search API offers client libraries that makes it easy to integrate search capabilities into your applications. Use this quickstart to start sending search requests, and get back results.
5+
services: cognitive-services
6+
author: aahill
7+
manager: nitinme
8+
zone_pivot_groups: programming-languages-set-ten
9+
10+
ms.service: cognitive-services
11+
ms.subservice: bing-image-search
12+
ms.topic: quickstart
13+
ms.date: 03/04/2020
14+
ms.author: aahi
15+
---
16+
# Quickstart: Use the Bing Image Search client library
17+
18+
::: zone pivot="programming-language-csharp"
19+
20+
[!INCLUDE [C# quickstart](../includes/quickstarts/image-search-client-library-csharp.md)]
21+
22+
::: zone-end
23+
24+
::: zone pivot="programming-language-java"
25+
26+
[!INCLUDE [Java quickstart](../includes/quickstarts/image-search-client-library-java.md)]
27+
28+
::: zone-end
29+
30+
::: zone pivot="programming-language-javascript"
31+
32+
[!INCLUDE [JavaScript quickstart](../includes/quickstarts/image-search-client-library-javascript.md)]
33+
34+
::: zone-end
35+
36+
::: zone pivot="programming-language-python"
37+
38+
[!INCLUDE [Python quickstart](../includes/quickstarts/image-search-client-library-python.md)]
39+
40+
::: zone-end

articles/cognitive-services/Bing-Image-Search/toc.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,8 @@
2626
href: quickstarts/ruby.md
2727
- name: SDK
2828
items:
29-
- name: "Using C#"
30-
href: image-search-sdk-quickstart.md
31-
- name: "Using Node.js"
32-
href: image-search-sdk-node-quickstart.md
33-
- name: "Using Python"
34-
href: image-sdk-python-quickstart.md
35-
- name: "Using Java"
36-
href: image-sdk-java-quickstart.md
29+
- name: "Bing Image Search client libraries"
30+
href: ./quickstarts/client-libraries.md
3731
- name: Tutorials
3832
items:
3933
- name: Build an image search web application

articles/cognitive-services/Bing-Web-Search/index.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -82,18 +82,18 @@ conceptualContent:
8282

8383
- title: Bing Image Search
8484
links:
85-
- url: ../bing-image-search/image-search-sdk-quickstart.md
85+
- text: Use C#
8686
itemType: quickstart
87-
text: Use C#
88-
- url: ../bing-image-search/image-sdk-java-quickstart.md
87+
url: ../bing-image-search/quickstarts/client-libraries.md?pivots=programming-language-csharp
88+
- text: Use Java
8989
itemType: quickstart
90-
text: Use Java
91-
- text: Use Node.js
90+
url: ../bing-image-search/quickstarts/client-libraries.md?pivots=programming-language-java
91+
- text: Use JavaScript
9292
itemType: quickstart
93-
url: ../bing-image-search/image-search-sdk-node-quickstart.md
93+
url: ../bing-image-search/quickstarts/client-libraries.md?pivots=programming-language-javascript
9494
- text: Use Python
9595
itemType: quickstart
96-
url: ../bing-image-search/image-sdk-python-quickstart.md
96+
url: ../bing-image-search/quickstarts/client-libraries.md?pivots=programming-language-python
9797
- text: Create a single page web-app
9898
itemType: tutorial
9999
url: ../bing-image-search/tutorial-bing-image-search-single-page-app.md

0 commit comments

Comments
 (0)