No commit activity in last 3 years
No release in over 3 years
Ruby wrapper for the YellowPages' Yellow API based on Ian Bishop's yellow_api gem
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 0.10.3
~> 0.9
~> 3.4
>= 0.5.0
~> 3.0
~> 1.8.0
~> 0.7

Runtime

~> 0.4.0
~> 2.3.5
 Project Readme

Yellow API

Ruby wrapper for the YellowPages' YellowAPI.

Installation

$ gem install yellow_api

Usage

Creating a client

# Production
@client = YellowApi.new(:apikey => "yourapikeygoeshere")

# Sandbox
@client = YellowApi.new(:apikey => "sandboxapikey", :sandbox_enabled => true)

Find businesses by listing

@client.find_business("barber", "Ottawa")

@client.find_business("barber", "Ottawa", { :pgLen => 10 }) # Limit to 10 listings

Get business details

my_barber = @client.find_business("barber", "Ottawa").listings.first
@client.get_business_details(my_barber.address.prov, my_barber.name, my_barber.id)

Find dealers

@client.find_dealer(6418182, { :pgLen => 10 })

Get type ahead

@client.get_type_ahead("auto", :what)
@client.get_type_ahead("monct", :where)

Documentation

See here

Official API docs

Inspiration

API style was largely inspired by sferik's twitter.

Copyright

See LICENSE for more details.