def get(object, options = {})
      if options[:all_pages]
        options.delete(:all_pages)
        options[:page] = 1
        out = []
        begin
          data = get(object, options)
          out = out | data
          options[:page] += 1
        end while data.count >= 100
        return out
      else
        if options[:id]
          resp = @connection.get "#{object}/#{options[:id]}"
        elsif options.size > 0
          resp = @connection.get "#{object}#{Client.parse_options(options)}"
        else
          resp = @connection.get object
        end
        raise "Bad response: #{resp.status}" unless resp.status == 200
        Client.mash(JSON.parse(resp.body))
      end
    end
def get(object, options = {})
      if options[:all_pages]
        options.delete(:all_pages)
        options[:page] = 1
        out = []
        begin
          data = get(object, options)
          out = out | data
          options[:page] += 1
        end while data.count >= 100
        return out
      else
        if options[:id]
          resp = @connection.get "#{object}/#{options[:id]}"
        elsif options.size > 0
          resp = @connection.get "#{object}#{Client.parse_options(options)}"
        else
          resp = @connection.get object
        end
        raise "Bad response: #{resp.status}" unless resp.status == 200
        Client.mash(JSON.parse(resp.body))
      end
    end
Sets up a client

 @param [String] API key
 Get any rest accessible object

 @param [String] object name
 @param [Hash] optional search parameters
 @return [Mash] your data