jonahb / bing-search

A Ruby client for the Bing Search API
MIT License
17 stars 4 forks source link

BingSearch::ServiceError: Bing error 401: The authorization type you provided is not supported. Only Basic and OAuth are supported #2

Closed travispearl closed 8 years ago

travispearl commented 8 years ago

Hi Jonah,

Thanks for creating this gem. I signed up with my account key on Azure and installed the gem.

I opened a "rails console" window and ran: 1) BingSearch.account_key = 'my-account-key' 2) results = BingSearch.web('travis')

Response is: BingSearch::ServiceError: Bing error 401: The authorization type you provided is not supported. Only Basic and OAuth are supported

Unsure if something changed in their authentication scheme since the gem was created or if this is user error. Thoughts?

travispearl commented 8 years ago

Closing out this issue - user error. I passed in an invalid account key, which is what caused the confusing error message. Thanks, gem works great!