1

我有两个新的 Bing API 密钥。我已将它们放在我的代码中正确的位置:

 function getSubscriptionKey() {
   var key = "c8a8bbc87015441295d7df8e70ed8e9d"; //     var key = retrieveValue(API_KEY_COOKIE);
    while (key.length !== 32) {
    key = prompt("Enter Bing Search API subscription key:", "").trim();
   }
   // always set the cookie in order to update the expiration date
   storeValue(API_KEY_COOKIE, key);
   return key;
 }  

搜索返回:

错误 HTTP 状态 401 PermissionDenied 错误:[object Object]

搜索引擎之前运行良好。Bing 可能已经更改了他们的 API。

以前在这里工作的codepen:

https://codepen.io/Teeke/project/editor/XvymoQ

4

0 回答 0