module MCLI
Constants
- VERSION
Public Class Methods
get_didntgo_events()
click to toggle source
# File lib/meetup-cli/api.rb, line 28 def self.get_didntgo_events api = init_api.fetch(:events, {member_id: 'self', status: 'past', desc: 'true', rsvp: 'no'}) end
get_going_events()
click to toggle source
Meetup API docs: www.meetup.com/meetup_api/docs/2/events/
# File lib/meetup-cli/api.rb, line 12 def self.get_going_events api = init_api.fetch(:events, {member_id: 'self', rsvp: 'yes'}) end
get_notgoing_events()
click to toggle source
# File lib/meetup-cli/api.rb, line 16 def self.get_notgoing_events api = init_api.fetch(:events, {member_id: 'self', rsvp: 'no'}) end
get_past_events()
click to toggle source
# File lib/meetup-cli/api.rb, line 32 def self.get_past_events # Unlike upcoming events, does not return valid results if 'rsvp' value is not explicitly specified api = init_api.fetch(:events, {member_id: 'self', status: 'past', desc: 'true', rsvp: 'yes,no'}) end
get_upcoming_events()
click to toggle source
# File lib/meetup-cli/api.rb, line 20 def self.get_upcoming_events api = init_api.fetch(:events, {member_id: 'self'}) end
get_went_events()
click to toggle source
# File lib/meetup-cli/api.rb, line 24 def self.get_went_events api = init_api.fetch(:events, {member_id: 'self', status: 'past', desc: 'true', rsvp: 'yes'}) end
init_api()
click to toggle source
# File lib/meetup-cli/api.rb, line 4 def self.init_api RMeetup::Client.new do |meetup_config| meetup_config.api_key = $config['api_key'] end end