From 1019ed6b6ba1c6212cae4c022a1d36370948ceb7 Mon Sep 17 00:00:00 2001 From: "John M. Wargo" Date: Mon, 9 Nov 2020 17:05:42 -0500 Subject: [PATCH] Updated the endpoint variable According to this: https://docs.microsoft.com/en-us/answers/questions/154655/resource-not-found.html, the URL is "https://api.bing.microsoft.com/v7.0/news/search" --- nodejs/Search/BingNewsSearchv7.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodejs/Search/BingNewsSearchv7.js b/nodejs/Search/BingNewsSearchv7.js index 28b08b3..7bc5b3c 100644 --- a/nodejs/Search/BingNewsSearchv7.js +++ b/nodejs/Search/BingNewsSearchv7.js @@ -12,7 +12,7 @@ let request = require('request'); // Add your Bing Search V7 subscription key and endpoint to your environment variables. let subscriptionKey = process.env['BING_SEARCH_V7_SUBSCRIPTION_KEY'] -let endpoint = process.env['BING_SEARCH_V7_ENDPOINT'] + '/bing/v7.0/news/search'; +let endpoint = process.env['BING_SEARCH_V7_ENDPOINT'] + '/v7.0/news/search'; // News topics you'd like to search for. let query = 'Microsoft';