def get(url, params={})
      RestClient.get(url, build_params(params)) do |resp, req, res, &block|
        case resp.code
        when 200
          JSON.parse(resp)
        when 404
          raise Unchained::NotFound.new(res.message)
        else
          resp.return!(req, res, &block)
        end
      end
    end
def get(url, params={})
      RestClient.get(url, build_params(params)) do |resp, req, res, &block|
        case resp.code
        when 200
          JSON.parse(resp)
        when 404
          raise Unchained::NotFound.new(res.message)
        else
          resp.return!(req, res, &block)
        end
      end
    end
Use RestClient to actually make the request to the API. If the response
 is a 200 (success), we will parse the response as JSON and return it. If
 the response is a known error (i.e. a 404), we will raise a custom
 Unchained error (found in error.rb). If the response is an unkonwn error,
 we will return it exactly as we found it.