code: def get_emit_api(self, action):
          
          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
          )
docs: Build emit api.