def setContent(self, type_, value):
        """
        Sets the content that's going to be sent to analyze according to its type

        :param type_:
            Type of the content (text, file or url)
        :param value:
            Value of the content
        """

        if type_ in [self.CONTENT_TYPE_TXT, self.CONTENT_TYPE_URL,
                     self.CONTENT_TYPE_FILE]:
            if type_ == self.CONTENT_TYPE_FILE:
                self._file = {}
                self._file = {'doc': open(value, 'rb')}
            else:
                self.addParam(type_, value)