Skip to content

Instantly share code, notes, and snippets.

@themoxman
Created January 3, 2014 02:12
Show Gist options
  • Save themoxman/8231367 to your computer and use it in GitHub Desktop.
Save themoxman/8231367 to your computer and use it in GitHub Desktop.
require 'json'
require 'faraday'
require 'faraday_middleware'
require 'hashie'
require 'pry'
class Github < Hash
include Hashie::Extensions::MethodAccess
end
@connection = Faraday.new 'http://api.meetup.com' do |builder|
builder.request :json
builder.response :json #, :content_type => /\bjson$/
builder.use FaradayMiddleware::Mashify
end
@response = @connection.get "/2/groups/?key=&group_id=7739072"
binding.pry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment