def __init__(self, api_key, max_events, since_id=None):
        """
        max_events: if None, defaults to 4. This is the maximum number of event
        notifications that Growl will display during a single poll.

        since_id: a POSIX timestamp in UTC that is used to filter Stripe
        events. If None, defaults to the current time (in UTC).
        """
        # Setup Stripe
        import stripe
        self.stripe         = stripe
        self.stripe.api_key = api_key
        self.max_events     = max_events
        # Specified 'latest known' event (or right now)
        from time import time
        self.since_id = since_id or int(time())
        # Setup Growl notifier
        import gntp.notifier
        self.notifier = gntp.notifier.GrowlNotifier(
                            applicationName      = APP_NAME,
                            notifications        = self.NOTIFICATIONS,
                            defaultNotifications = self.NOTIFICATIONS,
                      )
        try:
            self.notifier.register()
        except:
            from sys import exit, stderr
            stderr.write("ERR: Unable to register %s with Growl.\n" % APP_NAME)
            exit(1)
dataset/ETHPy150Open michaelschade/stripe_growl/stripe_growl.py/StripeNotifier.__init__/original