def _get_rest_api_url_from_creds(session, credentials):
resources_url = credentials['<STR_LIT>'] + credentials['<STR_LIT>']<EOL>try:<EOL><INDENT>response_raw = session.get(resources_url, auth=(credentials['<STR_LIT>'], credentials['<STR_LIT:password>']))<EOL>response = response_raw.json()<EOL><DEDENT>except:<EOL><INDENT>logger.error("<STR_LIT>" + resources_url)<EOL>raise<EOL><DEDENT>response_raw.raise_for_status()<EOL>rest_api_url = response['<STR_LIT>'] + '<STR_LIT>'<EOL>return rest_api_url<EOL>
Retrieves the Streams REST API URL from the provided credentials.
    Args:
        session (:py:class:`requests.Session`): A Requests session object for making REST calls
        credentials (dict): A dict representation of the credentials.
    Returns:
        str: The remote Streams REST API URL.