code: def allow_event_stream(self, **kwargs):
          
          scope = ScopeURI('stream', 'subscribe', {'path': '/2010-04-01/Events'})
          if kwargs:
              scope.add_param('params', urlencode(kwargs, doseq=True))
  
          self.capabilities["events"] = scope
docs: Allow the user of this token to access their event stream.