Bing API相關(guān)搜索 | 您所在的位置:網(wǎng)站首頁(yè) › 哪里算八字特別準(zhǔn) › Bing API相關(guān)搜索 |
如何讓相關(guān)搜索包含在Bing search API的響應(yīng)中? 根據(jù)這里的文檔,我正在嘗試應(yīng)用具有值RelatedSearches的responseFilter:https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-web-api-v7-reference#relatedsearchanswer 下面是我的代碼,基于Bing的示例。我將"&responseFilter=RelatedSearches“添加到由file_get_contents()獲取的URL中。 我得到的錯(cuò)誤是: 代碼語(yǔ)言:javascript運(yùn)行復(fù)制PHP Warning: file_get_contents(https://api.cognitive.microsoft.com/bing/v7.0/search?responseFilter=RelatedSearches&q=iphone+case): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden顯然,我的應(yīng)用是錯(cuò)誤的。我可以做些什么來(lái)使其正常工作? 代碼語(yǔ)言:javascript運(yùn)行復(fù)制 |
CopyRight 2018-2019 實(shí)驗(yàn)室設(shè)備網(wǎng) 版權(quán)所有 |