rMeetup
A Ruby wrapper for the Meetup REST API v2.
Code Sample
Sample code is worth a thousand words:
client = RMeetup::Client.new do |config|
config.api_key = "API_KEY"
end
results = client.fetch(:events, { event_id: 'some_id' })
results.each do |result|
# Do something with the result
end
Fetch
RMeetup::Client#fetch takes a data model type and set of options as arguments. Possible data models are:
- :events
- :open_events
- :groups
- :rsvps
- :cities
- :members
- :photos
- :venues
The options that may be passed can be found on the Meetup API documentation. Please see http://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 /2/events" at http://www.meetup.com/meetup_api/docs/2/events/).
Post
RMeetup::Client#post takes a data model type and set of options as arguments. Possible data models are:
- :event_comment
The options that may be passed can be found on the Meetup API documentation. Please see http://www.meetup.com/meetup_api/docs/ and look up the model that you are calling (i.e. for :event_comment, look at the API call POST /2/event_comment at http://www.meetup.com/meetup_api/docs/2/event_comment).
Installation
... via Rubygems/Bundler.
Credits
- Jared Pace - built initial iteration
- Jason Berlinsky - forked, expanded, documented for api v1.0
- Tommy Chan - added venues, updated to api v2.0
- Tanner Mares - check for type in base_url, fix event time and venue, also updated to api v2.0
- Joshua Calloway - added post functionality and event comment creation
- Zishan Ahmad - consolidated changes, updated docs
- Nikica Jokić - thread-safe client refactoring, setup for TravisCI, CodeClimate, Coveralls...

