Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

End Of Life coming soon for this api's endpoint #4

Open
rcavezza opened this issue Dec 9, 2016 · 10 comments
Open

End Of Life coming soon for this api's endpoint #4

rcavezza opened this issue Dec 9, 2016 · 10 comments

Comments

@rcavezza
Copy link

rcavezza commented Dec 9, 2016

I wasn't sure if anyone was still actively maintaining this repo. Wanted to doublecheck about possibility of someone working on the changes that will be necessary due to the Bing Search END OF LIFE coming up in less than a week.

-Bob

(below is from email I received yesterday)

End of life for the Azure Data Market "Bing Search" and "Bing Web Results Only" API offerings will take place on December 15, 2016.

ACTION:

  • Please upgrade to Microsoft Cognitive Services Search API before December 15, 2016.
  • Cancel your existing Azure Data Market subscription

If you choose not to upgrade to the new API offering, you will automatically lose access to your existing Bing Search or Bing Web Results Only Azure subscriptions at 5:00 PM Pacific Time on December 15, 2016 and calls to these API endpoints will no longer return any data.

Webcast - How to move from Bing Search API V2 to Cognitive Services
Our team is here to help you migrate to the Microsoft Cognitive Services Search API. In October, we hosted a webcast that walks you through the process. You can view a recording of the webcast at https://infopedia.eventbuilder.com/event?eventid=i5d7n8.

Note: To view the video, click the "Register" button and enter your details.

Support
Also, we have developed resources to help guide you through the process:

Migration Guide -https://msdn.microsoft.com/en-US/library/mt707570.aspx

FAQ - See the updated FAQ with Azure Data Market subscription information

If you have any questions, please reach out to the Azure Support via User Voice.-

Thank you!

The Bing Team
Microsoft Corporation

@jonahb
Copy link
Owner

jonahb commented Dec 27, 2016

Hi @rcavezza. I've looked into moving to the new API, but the changes are significant, and I don't have time right now. If you'd like to try, please feel free to use this code as a starting point.

@martinvelez
Copy link

This is still working as of today.


#!/usr/bin/env ruby 

require 'bing-search'

BingSearch.web_only = true
BingSearch.account_key = '123456789'
results = BingSearch.web('Martin Velez')

@jonahb
Copy link
Owner

jonahb commented Jan 13, 2017 via email

@vishne0
Copy link

vishne0 commented Jun 20, 2017

Its not working anymore. Can you guide a bit what kind of changes needs to be done in the script.

@martinvelez
Copy link

@vishne0 You can do a basic web search with the following code:

# Make a call to the Bing Web Search Api v5
# Documentation: https://dev.cognitive.microsoft.com/docs/services/56b43eeccf5ff8098cef3807/operations/56b4447dcf5ff8098cef380d
#
# params: String query 
# returns response status and reponse body
def web_search(query)
  Rails.logger.debug __method__
  uri = URI('https://api.cognitive.microsoft.com/bing/v5.0/search')
  uri.query = URI.encode_www_form({
      # Request parameters
      'q' => query
      #'count' => '10',
      #'offset' => '0',
      #'mkt' => 'en-us'
      #'safesearch' => 'Moderate'
  })  

  request = Net::HTTP::Get.new(uri.request_uri)
  # Request headers
  request['Ocp-Apim-Subscription-Key'] = ENV['BING_KEY']
  # Request body
  request.body = "{body}"

  response = Net::HTTP.start(uri.host, uri.port, :use_ssl => uri.scheme == 'https') do |http|
      http.request(request)
  end 
  
  return response
end # web_search

@vishne0
Copy link

vishne0 commented Jun 21, 2017

Can we implement this code in bing-search? I want to fix bing-search as i am using it for few of my apps. I really wish to offer some money if you can fix it for new version ?

@vishne0
Copy link

vishne0 commented Jun 21, 2017

I do not have a developer right now and i cant code myself so if you can help please

@jonahb
Copy link
Owner

jonahb commented Jun 21, 2017

Hi @vishne0, we could discuss updating the gem on contract. Please email me — jonah@jonahb.com.

@vishne0
Copy link

vishne0 commented Jun 23, 2017

Hi Jonahb,
I did send you an email yesterday but didnt get a reply. Can you please reply to me?

@vishne0
Copy link

vishne0 commented Jun 30, 2017

sent you few emails can you please reply ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants