def _get(auth, path, fmt, autobox=True, params=None):
if not params:<EOL><INDENT>params = {}<EOL><DEDENT>url = "<STR_LIT>" % (auth.url.rstrip('<STR_LIT:/>'), path.lstrip('<STR_LIT:/>'))<EOL>params["<STR_LIT>"] = fmt<EOL>logger.debug("<STR_LIT>", url)<EOL>logger.debug("<STR_LIT>", params)<EOL>r = requests.get(url, params=params, auth=(auth.username, auth.password), verify=CHECK_CERTIFICATE)<EOL>if r.status_code != requests.codes.ok:<EOL><INDENT>raise RestApiError("<STR_LIT>" % (r.status_code, r.url))<EOL><DEDENT>if not r.content:<EOL><INDENT>raise RestApiError("<STR_LIT>" % r.url)<EOL><DEDENT>if autobox:<EOL><INDENT>return r.url,_autobox(r.text, fmt)<EOL><DEDENT>else:<EOL><INDENT>return r.url,r.content<EOL><DEDENT>
Issue a GET request to the XNAT REST API and box the response content.

Example:
    >>> import yaxil
    >>> from yaxil import Format
    >>> auth = yaxil.XnatAuth(url='...', username='...', password='...')
    >>> yaxil.get(auth, '/data/experiments', Format.JSON)

:param auth: XNAT authentication
:type auth: :mod:`yaxil.XnatAuth`
:param path: API URL path
:type path: str
:param fmt: API result format
:type fmt: :mod:`yaxil.Format`
:param autobox: Autobox response content into an appropriate reader or other data structure
:type autobox: bool
:param params: Additional query parameters
:type params: dict
:returns: Tuple of (URL, :mod:`dict` | :mod:`xml.etree.ElementTree` | :mod:`csv.reader` | :mod:`str`)
:rtype: tuple