Project

oodle

0.0
No commit activity in last 3 years
No release in over 3 years
Provides a Ruby wrapper around the Oodle API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

 Project Readme

Oodle Ruby API


Description

Oodle is an online classifieds service. By using this client for the Oodle API, you can add classified listings to your own site. You can filter listings by category, region, and keywords. You will need to request an API key to get started.

Installation

gem install oodle

Example

require 'rubygems'
require 'oodle'

API_KEY = '??????' # Request your API key at http://developer.oodle.com/request-api-key

oodle = Oodle::API.new(API_KEY)
oodle.region = 'chicago'
oodle.category = 'sale'
oodle.num = '15'
oodle.sort = 'ctime_reverse'
results = oodle.fetch_listings
num = results['meta']['returned']
listings = results['listings']
0.upto(num - 1) { |i| p listings[i]['title'] }

Dependencies

  • xml-simple gem
  • json gem

License

This software is licensed using the MIT License (see LICENSE for details).