def check_spam(self, ip=None, email=None, name=None, login=None, realname=None,
                   subject=None, body=None, subject_type='plain', body_type='plain'):
        """ http://api.yandex.ru/cleanweb/doc/dg/concepts/check-spam.xml
            subject_type = plain|html|bbcode
            body_type = plain|html|bbcode
        """
        data = {'ip': ip, 'email': email, 'name': name, 'login': login, 'realname': realname,
                'body-%s' % body_type: body, 'subject-%s' % subject_type: subject}
        r = self.request('post', 'http://cleanweb-api.yandex.ru/1.0/check-spam', data=data)
        root = ET.fromstring(r.content)
        return {
            'id': root.findtext('id'),
            'spam_flag': yesnobool(root.find('text').attrib['spam-flag']),
            'links': [(link.attrib['href'], yesnobool(link.attrib['spam-flag'])) for link in root.findall('./links/link')]
        }
http://api.yandex.ru/cleanweb/doc/dg/concepts/check-spam.xml
            subject_type = plain|html|bbcode
            body_type = plain|html|bbcode