@defer.inlineCallbacks
    def register_email(self, threepidCreds):

        for c in threepidCreds:
            logger.info("validating theeepidcred sid %s on id server %s",
                        c['sid'], c['idServer'])
            try:
                identity_handler = self.hs.get_handlers().identity_handler
                threepid = yield identity_handler.threepid_from_creds(c)
            except:
                logger.exception("Couldn't validate 3pid")
                raise RegistrationError(400, "Couldn't validate 3pid")

            if not threepid:
                raise RegistrationError(400, "Couldn't validate 3pid")
            logger.info("got threepid with medium '%s' and address '%s'",
                        threepid['medium'], threepid['address'])
Testing the GET <URL> API with text_type=markdown and
dataset/ETHPy150Open matrix-org/synapse/synapse/handlers/register.py/RegistrationHandler.register_email--crossover with--dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/webapi/tests/mixins_comment.py/BaseCommentItemMixin.test_get_with_markdown_and_force_text_type_plain