lib/jamf/api/connection.rb
# GET a rsrc without doing any JSON parsing, using
# a temporary Faraday connection object
GET a rsrc without doing any JSON parsing, using
a temporary Faraday connection object
GET a rsrc without doing any JSON parsing using a temporary Faraday connection object
def download(rsrc)
      temp_cnx = create_connection(false)
      resp = temp_cnx.get rsrc
      @last_http_response = resp
      return resp.body if resp.success?
      raise Jamf::Connection::APIError, resp
    end
def download ( rsrc ) temp_cnx = create_connection ( false ) resp = temp_cnx . get rsrc @last_http_response = resp return resp . body if resp . success? raise Jamf :: Connection :: APIError , resp end
GET a rsrc without doing any JSON parsing, using
a temporary Faraday connection object
GET a rsrc without doing any JSON parsing using a temporary Faraday connection object
rsrc