'Add a TXT record using the supplied information.
:param str domain: The domain to use to look up the Cloudflare zone.
:param str record_name: The record name (typically beginning with \'_acme-challenge.\').
:param str record_content: The record content (typically the challenge validation).
:param int record_ttl: The record TTL (number of seconds that the record may be cached).
:raises certbot.errors.PluginError: if an error occurs communicating with the Cloudflare API'

def add_txt_record(self, domain, record_name, record_content, record_ttl):

    zone_id = self._find_zone_id(domain)
    data = {'type': 'TXT', 'name': record_name, 'content': record_content, 'ttl': record_ttl}
    try:
        logger.debug('Attempting    to    add    record    to    zone    %s:    %s', zone_id, data)
        self.cf.zones.dns_records.post(zone_id, data=data)
    except CloudFlare.exceptions.CloudFlareAPIError as e:
        logger.error('Encountered    CloudFlareAPIError    adding    TXT    record:    %d    %s', e, e)
        raise errors.PluginError('Error    communicating    with    the    Cloudflare    API:    {0}'.format(e))
    record_id = self._find_txt_record_id(zone_id, record_name, record_content)
    logger.debug('Successfully    added    TXT    record    with    record_id:    %s', record_id)
