Skip to content

Commit e05c51b

Browse files
authored
Merge pull request #107555 from john-par/1678688-adding-zone-pivots-bing-news-search
1678688, adding zone pivots bing news search.
2 parents b01a3cd + 4cafdf1 commit e05c51b

File tree

8 files changed

+96
-63
lines changed

8 files changed

+96
-63
lines changed

.openpublishing.redirection.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1745,6 +1745,26 @@
17451745
"redirect_url": "/azure/cognitive-services/bing-entity-search/quickstarts/client-libraries?pivots=programming-language-python",
17461746
"redirect_document_id": false
17471747
},
1748+
{
1749+
"source_path": "articles/cognitive-services/Bing-News-Search/news-search-sdk-quickstart.md",
1750+
"redirect_url": "/azure/cognitive-services/bing-news-search/quickstarts/client-libraries?pivots=programming-language-csharp",
1751+
"redirect_document_id": false
1752+
},
1753+
{
1754+
"source_path": "articles/cognitive-services/Bing-News-Search/news-sdk-java-quickstart.md",
1755+
"redirect_url": "/azure/cognitive-services/bing-news-search/quickstarts/client-libraries?pivots=programming-language-java",
1756+
"redirect_document_id": false
1757+
},
1758+
{
1759+
"source_path": "articles/cognitive-services/Bing-News-Search/news-search-sdk-node-quickstart.md",
1760+
"redirect_url": "/azure/cognitive-services/bing-news-search/quickstarts/client-libraries?pivots=programming-language-javascript",
1761+
"redirect_document_id": false
1762+
},
1763+
{
1764+
"source_path": "articles/cognitive-services/Bing-News-Search/news-sdk-python-quickstart.md",
1765+
"redirect_url": "/azure/cognitive-services/bing-news-search/quickstarts/client-libraries?pivots=programming-language-python",
1766+
"redirect_document_id": false
1767+
},
17481768
{
17491769
"source_path": "articles/virtual-machines/linux/classic/rdma-cluster.md",
17501770
"redirect_url": "/azure/virtual-machines/linux/sizes-hpc#rdma-capable-instances",

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

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,16 @@
11
---
2-
title: "Quickstart: Perform a news search using the SDK for C# - Bing News Search"
2+
title: Bing News Search C# client library quickstart
33
titleSuffix: Azure Cognitive Services
4-
description: Use this quickstart to search for news using the Bing News Search SDK for C#, and process the response.
54
services: cognitive-services
65
author: aahill
76
manager: nitinme
8-
97
ms.service: cognitive-services
10-
ms.subservice: bing-news-search
11-
ms.topic: quickstart
12-
ms.date: 12/12/2019
8+
ms.topic: include
9+
ms.date: 03/12/2020
1310
ms.author: aahi
14-
ms.custom: seodec2018
1511
---
1612

17-
# Quickstart: Perform a news search with the Bing News Search SDK for C#
18-
19-
Use this quickstart to begin searching for news with the Bing News Search SDK for C#. While Bing News Search has a REST API compatible with most programming languages, the SDK provides an easy way to integrate the service into your applications. The source code for this sample can be found on [GitHub](https://github.com/Azure-Samples/cognitive-services-dotnet-sdk-samples/tree/master/BingSearchv7/BingNewsSearch).
13+
Use this quickstart to begin searching for news with the Bing News Search client library for C#. While Bing News Search has a REST API compatible with most programming languages, the client library provides an easy way to integrate the service into your applications. The source code for this sample can be found on [GitHub](https://github.com/Azure-Samples/cognitive-services-dotnet-sdk-samples/tree/master/BingSearchv7/BingNewsSearch).
2014

2115
## Prerequisites
2216

@@ -29,9 +23,9 @@ Use this quickstart to begin searching for news with the Bing News Search SDK fo
2923
* Microsoft.Rest.ClientRuntime.Azure
3024
* Newtonsoft.Json
3125

32-
To set up a console application using the Bing News Search SDK, browse to the `Manage NuGet Packages` option from the Solution Explorer in Visual Studio. Add the `Microsoft.Azure.CognitiveServices.Search.NewsSearch` package.
26+
To set up a console application using the Bing News Search client library, browse to the `Manage NuGet Packages` option from the Solution Explorer in Visual Studio. Add the `Microsoft.Azure.CognitiveServices.Search.NewsSearch` package.
3327

34-
[!INCLUDE [cognitive-services-bing-news-search-signup-requirements](../../../includes/cognitive-services-bing-news-search-signup-requirements.md)]
28+
[!INCLUDE [cognitive-services-bing-news-search-signup-requirements](~/includes/cognitive-services-bing-news-search-signup-requirements.md)]
3529

3630
## Create and initialize a project
3731

@@ -85,4 +79,4 @@ To set up a console application using the Bing News Search SDK, browse to the `M
8579
## Next steps
8680

8781
> [!div class="nextstepaction"]
88-
> [Create a single-page web app](tutorial-bing-news-search-single-page-app.md)
82+
> [Create a single-page web app](../../tutorial-bing-news-search-single-page-app.md)

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

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,20 @@
11
---
2-
title: "Quickstart: Perform a news search using the SDK for Java - Bing News Search"
2+
title: Bing News Search Java client library quickstart
33
titleSuffix: Azure Cognitive Services
4-
description: Use this quickstart to search for news using the Bing News Search SDK for Java, and process the response.
54
services: cognitive-services
65
author: aahill
76
manager: nitinme
8-
97
ms.service: cognitive-services
10-
ms.subservice: bing-news-search
11-
ms.topic: quickstart
12-
ms.date: 12/12/2019
8+
ms.topic: include
9+
ms.date: 03/12/2020
1310
ms.author: aahi
14-
ms.custom: seodec2018
1511
---
16-
# Quickstart: Search for news with the Bing News Search SDK for Java
1712

18-
Use this quickstart to begin searching for news with the Bing News Search SDK for Java. While Bing News Search has a REST API compatible with most programming languages, the SDK provides an easy way to integrate the service into your applications. The source code for this sample can be found on [GitHub](https://github.com/Azure-Samples/cognitive-services-java-sdk-samples/tree/master/Search/BingNewsSearch).
13+
Use this quickstart to begin searching for news with the Bing News Search client library for Java. While Bing News Search has a REST API compatible with most programming languages, the client library provides an easy way to integrate the service into your applications. The source code for this sample can be found on [GitHub](https://github.com/Azure-Samples/cognitive-services-java-sdk-samples/tree/master/Search/BingNewsSearch).
1914

2015
## Prerequisites
2116

22-
Install the Bing News Search SDK dependencies using Maven, Gradle, or another dependency management system. The Maven POM file requires the following declaration:
17+
Install the Bing News Search client library dependencies using Maven, Gradle, or another dependency management system. The Maven POM file requires the following declaration:
2318

2419
```xml
2520
<dependencies>
@@ -31,7 +26,7 @@ Install the Bing News Search SDK dependencies using Maven, Gradle, or another de
3126
</dependencies>
3227
```
3328

34-
[!INCLUDE [cognitive-services-bing-news-search-signup-requirements](../../../includes/cognitive-services-bing-news-search-signup-requirements.md)]
29+
[!INCLUDE [cognitive-services-bing-news-search-signup-requirements](~/includes/cognitive-services-bing-news-search-signup-requirements.md)]
3530

3631
## Create and initialize a project
3732

@@ -62,7 +57,7 @@ import java.io.IOException;
6257
}
6358
```
6459

65-
2. To create the `ServiceClientCredentials` object, override the `applyCredentialsFilter()` function. Pass a `OkHttpClient.Builder` to the method, and use the builder's `addNetworkInterceptor()` method to create your credentials for the SDK call.
60+
2. To create the `ServiceClientCredentials` object, override the `applyCredentialsFilter()` function. Pass a `OkHttpClient.Builder` to the method, and use the builder's `addNetworkInterceptor()` method to create your credentials for the client library call.
6661
6762
```java
6863
new ServiceClientCredentials() {
@@ -133,4 +128,4 @@ import java.io.IOException;
133128
## Next steps
134129
135130
> [!div class="nextstepaction"]
136-
> [Create a single-page web app](tutorial-bing-news-search-single-page-app.md)
131+
> [Create a single-page web app](../../tutorial-bing-news-search-single-page-app.md)

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

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,27 @@
11
---
2-
title: "Quickstart: Perform a news search using the SDK for Node.js - Bing News Search"
2+
title: Bing News Search JavaScript client library quickstart
33
titleSuffix: Azure Cognitive Services
4-
description: Use this quickstart to search for news using the Bing News Search SDK for Node.js, and process the response.
54
services: cognitive-services
65
author: aahill
76
manager: nitinme
87
ms.service: cognitive-services
9-
ms.subservice: bing-news-search
10-
ms.topic: quickstart
11-
ms.date: 12/12/2019
8+
ms.topic: include
9+
ms.date: 03/12/2020
1210
ms.author: aahi
13-
ms.custom: seodec2018
1411
---
1512

16-
# Quickstart: Perform a news search with the Bing News Search SDK for Node.js
17-
18-
Use this quickstart to begin searching for news with the Bing News Search SDK for Node.js. While Bing News Search has a REST API compatible with most programming languages, the SDK provides an easy way to integrate the service into your applications. The source code for this sample can be found on [GitHub](https://github.com/Azure-Samples/cognitive-services-node-sdk-samples/blob/master/Samples/newsSearch.js).
13+
Use this quickstart to begin searching for news with the Bing News Search client library for JavaScript. While Bing News Search has a REST API compatible with most programming languages, the client library provides an easy way to integrate the service into your applications. The source code for this sample can be found on [GitHub](https://github.com/Azure-Samples/cognitive-services-node-sdk-samples/blob/master/Samples/newsSearch.js).
1914

2015
## Prerequisites
2116

2217
* [Node.js](https://nodejs.org/en/)
2318

24-
To set up a console application using the Bing News Search SDK:
19+
To set up a console application using the Bing News Search client library:
2520
1. Run `npm install ms-rest-azure` in your development environment.
2621
2. Run `npm install azure-cognitiveservices-newssearch` in your development environment.
2722

2823

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

3126
## Create and initialize the application
3227

@@ -67,4 +62,4 @@ The code prints `result.value` items to the console without parsing any text. Th
6762
## Next steps
6863

6964
> [!div class="nextstepaction"]
70-
> [Create a single-page web app](tutorial-bing-news-search-single-page-app.md)
65+
> [Create a single-page web app](../../tutorial-bing-news-search-single-page-app.md)

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

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,16 @@
11
---
2-
title: "Quickstart: Perform a news search using the SDK for Python - Bing News Search"
2+
title: Bing News Search Python client library quickstart
33
titleSuffix: Azure Cognitive Services
4-
description: Use this quickstart to search for news using the Bing News Search SDK for Python, and process the response.
54
services: cognitive-services
65
author: aahill
76
manager: nitinme
8-
97
ms.service: cognitive-services
10-
ms.subservice: bing-news-search
11-
ms.topic: quickstart
12-
ms.date: 12/12/2019
8+
ms.topic: include
9+
ms.date: 03/12/2020
1310
ms.author: aahi
14-
ms.custom: seodec2018
1511
---
16-
# Quickstart: Perform a news search with the Bing News Search SDK for Python
1712

18-
Use this quickstart to begin searching for news with the Bing News Search SDK for Python. While Bing News Search has a REST API compatible with most programming languages, the SDK provides an easy way to integrate the service into your applications. The source code for this sample can be found on [GitHub](https://github.com/Azure-Samples/cognitive-services-python-sdk-samples/blob/master/samples/search/news_search_samples.py).
13+
Use this quickstart to begin searching for news with the Bing News Search client library for Python. While Bing News Search has a REST API compatible with most programming languages, the client library provides an easy way to integrate the service into your applications. The source code for this sample can be found on [GitHub](https://github.com/Azure-Samples/cognitive-services-python-sdk-samples/blob/master/samples/search/news_search_samples.py).
1914

2015
## Prerequisites
2116

@@ -27,13 +22,13 @@ It is recommended to use a [virtual environment](https://docs.python.org/3/tutor
2722
python -m venv mytestenv
2823
```
2924

30-
You can install the Bing News Search SDK dependencies with this command:
25+
You can install the Bing News Search client library dependencies with this command:
3126

3227
```console
3328
python -m pip install azure-cognitiveservices-search-newssearch
3429
```
3530

36-
[!INCLUDE [cognitive-services-bing-news-search-signup-requirements](../../../includes/cognitive-services-bing-news-search-signup-requirements.md)]
31+
[!INCLUDE [cognitive-services-bing-news-search-signup-requirements](~/includes/cognitive-services-bing-news-search-signup-requirements.md)]
3732

3833
## Create and initialize the application
3934

@@ -83,4 +78,4 @@ else:
8378
## Next steps
8479

8580
> [!div class="nextstepaction"]
86-
> [Create a single-page web app](tutorial-bing-news-search-single-page-app.md)
81+
> [Create a single-page web app](../../tutorial-bing-news-search-single-page-app.md)
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 News Search client library'
3+
titleSuffix: Azure Cognitive Services
4+
description: The News 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-news-search
12+
ms.topic: quickstart
13+
ms.date: 03/12/2020
14+
ms.author: aahi
15+
---
16+
# Quickstart: Use the Bing News Search client library
17+
18+
::: zone pivot="programming-language-csharp"
19+
20+
[!INCLUDE [C# quickstart](../includes/quickstarts/news-search-client-library-csharp.md)]
21+
22+
::: zone-end
23+
24+
::: zone pivot="programming-language-java"
25+
26+
[!INCLUDE [Java quickstart](../includes/quickstarts/news-search-client-library-java.md)]
27+
28+
::: zone-end
29+
30+
::: zone pivot="programming-language-javascript"
31+
32+
[!INCLUDE [JavaScript quickstart](../includes/quickstarts/news-search-client-library-javascript.md)]
33+
34+
::: zone-end
35+
36+
::: zone pivot="programming-language-python"
37+
38+
[!INCLUDE [Python quickstart](../includes/quickstarts/news-search-client-library-python.md)]
39+
40+
::: zone-end

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

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,8 @@
2828
href: go.md
2929
- name: SDK
3030
items:
31-
- name: Using C#
32-
href: news-search-sdk-quickstart.md
33-
- name: Using Node.js
34-
href: news-search-sdk-node-quickstart.md
35-
- name: Using Python
36-
href: news-sdk-python-quickstart.md
37-
- name: Using Java
38-
href: news-sdk-java-quickstart.md
31+
- name: Bing News Search client libraries
32+
href: ./quickstarts/client-libraries.md
3933
- name: Tutorials
4034
items:
4135
- name: Create a single-page web app

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,16 +127,16 @@ conceptualContent:
127127
links:
128128
- text: Use C#
129129
itemType: quickstart
130-
url: ../bing-news-search/news-search-sdk-quickstart.md
130+
url: ../bing-news-search/quickstarts/client-libraries.md?pivots=programming-language-csharp
131131
- text: Use Java
132132
itemType: quickstart
133-
url: ../bing-news-search/news-sdk-java-quickstart.md
134-
- text: Use Node.js
133+
url: ../bing-news-search/quickstarts/client-libraries.md?pivots=programming-language-java
134+
- text: Use JavaScript
135135
itemType: quickstart
136-
url: ../bing-news-search/news-search-sdk-node-quickstart.md
136+
url: ../bing-news-search/quickstarts/client-libraries.md?pivots=programming-language-javascript
137137
- text: Use Python
138138
itemType: quickstart
139-
url: ../bing-news-search/news-sdk-python-quickstart.md
139+
url: ../bing-news-search/quickstarts/client-libraries.md?pivots=programming-language-python
140140
- text: Create a single page web-app
141141
itemType: tutorial
142142
url: ../bing-news-search/tutorial-bing-news-search-single-page-app.md

0 commit comments

Comments
 (0)