goferito / node-bing-api

Node.js module for the Bing Search API (Cognitive Services)
MIT License
56 stars 28 forks source link

Get 404 on resource #45

Open ralyodio opened 4 years ago

ralyodio commented 4 years ago

I still get resource not found.

CognitiveServices now forces you to use your own endpoint.

I'm not sure how to pass it. The endpoints for /news/search is what i want.

I'm trying this:

 this.client = require('node-bing-api')({ accKey: opts.apiKey, rootUri: opts.rootUri });

apiKey is my api key and rootUri is BING_ENDPOINT=https://puump.cognitiveservices.azure.com/bing/v7.0

goferito commented 4 years ago

Hi chovy,

my apikey expired, and I cannot really test this now.

That seems fine to me. What error do you get?

ralyodio commented 4 years ago

Something like "Resource Not Found"