A Ruby Gem for accessing the Meetup.com API
Ruby
Pull request Compare This branch is 24 commits ahead of jdpace:master.
Latest commit 70bdf29 Jul 8, 2015 @Jberlinsky Merge pull request #4 from carpeliam/master
add support for API versioning, including v2 support for events
Permalink
Failed to load latest commit information.
lib remove references to Echoe, replace with bundler Dec 25, 2013
spec add support for API versioning, including v2 support for events Nov 12, 2013
.gitignore
.travis.yml Do not auto-test on 1.8.7. Sorry. It is old. Apr 12, 2012
Gemfile
Gemfile.lock remove references to Echoe, replace with bundler Dec 25, 2013
Manifest Removed UTF8 default, and packaged for Gemcutter Jan 21, 2011
README.rdoc Update README.rdoc Jul 8, 2015
Rakefile
rMeetup.gemspec remove references to Echoe, replace with bundler Dec 25, 2013

README.rdoc

rMeetup

A simple Ruby gem to access the Meetup API.

Code Sample

Sample code is worth a thousand words:

RMeetup::Client.api_key = "API_KEY"
results = RMeetup::Client.fetch(:events,{:zip => "ZIP_CODE"})
results.each do |result|
  # Do something with the result
end

RMeetup::Client.fetch takes a data model type and set of options as arguments. Possible data models are:

  • :topics

  • :cities

  • :members

  • :rsvps

  • :events

  • :groups

  • :comments

  • :photos

The options that may be passed can be found on the Meetup API documentation. Please see www.meetup.com/meetup_api/docs/ and look up the model that you are calling (i.e. for :events, look at the API call “GET /events” at www.meetup.com/meetup_api/docs/events/).

Installation

gem install rMeetup

Credit

Credit goes to Jared Pace for building the initial iteration of this gem. I just forked it, expanded and documented it a bit.