Skip to content

zishan/rmeetup

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rMeetup

A Ruby wrapper for the Meetup REST API v2.

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

Fetch

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

  • :venues

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 /2/events” at www.meetup.com/meetup_api/docs/2/events/).

Post

RMeetup::Client.poster 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 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 www.meetup.com/meetup_api/docs/2/event_comment/).

Installation

gem install rMeetup

Credit

[Jared Pace](github.com/jdpace/rmeetup) - built initial iteration [Jason Berlinsky](github.com/Jberlinsky/rmeetup) - forked, expanded, documented for api v1.0 [Tommy Chan](github.com/tommytcchan/rmeetup) - added venues, updated to api v2.0 [Tanner Mares](github.com/tannermares/rmeetup) - check for type in base_url, fix event time and venue, also updated to api v2.0 [Joshua Calloway](github.com/joshuacalloway/rmeetup) - added post functionality and event comment creation [Zishan Ahmad](github.com/zishan/rmeetup) - consolidated changes, updated docs

About

A Ruby Gem for accessing the Meetup.com API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%