def get_body(uri, param={})
      @param = param
      response = get(uri)
      unless (200..299).include? response.code
        raise "Could not GET #{uri} status: #{response.code}"
      end

      begin
        body = JSON.parse(response.body)
        if body.is_a? Hash

          if model? and not body.key? "feed"
            body = model.class.new(body)
          else
            body = Hashie::Mash.new(body)
          end
        elsif body.is_a? Array
          body.map! {|hash|Hashie::Mash.new(hash)}
        end

      rescue
        body = response.body
      end

      body

      #if response.headers["Content-Type"] =~ /application\/json/
      #  #if model?
      #  JSON.parse(body)
      #  #
      #  #model
      #else
      #  body
      #end

    end
def get_body(uri, param={})
      @param = param
      response = get(uri)
      unless (200..299).include? response.code
        raise "Could not GET #{uri} status: #{response.code}"
      end

      begin
        body = JSON.parse(response.body)
        if body.is_a? Hash

          if model? and not body.key? "feed"
            body = model.class.new(body)
          else
            body = Hashie::Mash.new(body)
          end
        elsif body.is_a? Array
          body.map! {|hash|Hashie::Mash.new(hash)}
        end

      rescue
        body = response.body
      end

      body

      #if response.headers["Content-Type"] =~ /application\/json/
      #  #if model?
      #  JSON.parse(body)
      #  #
      #  #model
      #else
      #  body
      #end

    end
deprecated