Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bing-helper

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bing-helper

  • 0.1.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

bing-helper - WORK IN PROGRESS

Thin wrapper for bing API options. Needed a flexible library that would let me plug in different HTTP options seamlessly while being eminently lazy. The gem has two primary purposes:

  1. Build the query string & URL
  2. Parse the response

That's all I need, and that's what it does.

Portions taken from our fork of Mike Demers's RBing library.

This client is for non-map API calls for now.

Usage

It's a pretty simple client:

@bing = BingHelper::Bing.new("YOUR API KEY")
results = @bing.web("ruby")
puts "Got #{results["SearchResponse"]["Web"]["Results"].length} results"

Testing Notes

To test this, please create a spec/test-key.rb file that looks like this:

module BingHelper
  TEST_KEY="<YOUR BING API KEY HERE>"
end

You need your Bing API key in order to execute some of the tests. This way, the key doesn't need to be checked in.


See the LICENSE file for licensing details.

FAQs

Package last updated on 01 Dec 2011

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc