class RubyMeetup::ApiKeyClient
This class is typically used to read data without needing to first obtain a user authenticated access_token
. We just need a valid API Key, which any one can obtain directly from www.meetup.com
The API key can be configured globally like so,
> RubyMeetup::ApiKeyClient.key = 'abcd000000000000000wxyz'
Then create a new client and make a request,
> client = RubyMeetup::ApiKeyClient.new > json_string = client.get_path("/2/groups", {:group_id => 390230})
The same client instance may be used to make multiple requests. Just supply a different @path and/or @options parameters as required.
Copyright © 2013 Long On, released under the MIT license
Public Class Methods
key=(string)
click to toggle source
Set the global API Key
# File lib/api_key_client.rb, line 28 def self.key=string @@key = string end