Sha256: 7dd342e75e942c6915606fbeb8f18f1756c30ef8b6b55fbb9733a0bd319246b8

Contents?: true

Size: 354 Bytes

Versions: 6

Compression:

Stored size: 354 Bytes

Contents

module Etsy4r
  class Client
    
    include HTTParty
    base_uri 'beta-api.etsy.com/v1'
    format :json
    
    def initialize(apikey)
      self.class.default_params :api_key => apikey
    end
    
    def process(uri, optional_params = {})
      Response.new(self.class.get(uri, :query => optional_params))
    end
    
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
tcocca-etsy4r-0.1.0 lib/etsy4r/client.rb
tcocca-etsy4r-0.2.0 lib/etsy4r/client.rb
tcocca-etsy4r-0.3.0 lib/etsy4r/client.rb
tcocca-etsy4r-0.3.1 lib/etsy4r/client.rb
tcocca-etsy4r-0.3.2 lib/etsy4r/client.rb
tcocca-etsy4r-0.4.0 lib/etsy4r/client.rb