def METHOD_NAME(self, endpoint, binary=False):
    """
    Gets a value from a given endpoint
    :param endpoint: Endpoint to read from
    :type endpoint: str
    :param binary: Is binary data being read
    :type binary: bool
    :return: Result
    :rtype: str or bytes
    """
    if endpoint not in self.endpoints:
        raise ValueError("Endpoint {0} does not exist".format(endpoint))
    path = self._get_endpoint_path(endpoint)
    if binary:
        read_mode = 'rb'
    else:
        read_mode = 'r'
    try:
        with open(path, read_mode) as open_endpoint:
            result = open_endpoint.read()
    except UnicodeDecodeError as e:
        return str(e)
    return result