<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 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
        )