Build emit api.

def get_emit_api(self, action):
        """Build emit api."""
        args = {'action': action}
        args.update(self.context)
        return (
            '%(scheme)s://%(sender)s:%(token)s@%(domain)s:%(port)d'
            '/event/%(project)s/emit/%(action)s' % args
        )