def __init__(self):
        """
        Strava API usage is limited on a per-application basis using a short term,
        15 minute, limit and a long term, daily, limit. The default rate limit
        allows 600 requests every 15 minutes, with up to 30,000 requests per day.
        This limit allows applications to make 40 requests per minute for about half the day.
        """

        super(DefaultRateLimiter, self).__init__()

        self.rules.append(XRateLimitRule(
            {'short': {'usageFieldIndex': 0, 'usage': 0,
                         # 60s * 15 = 15 min
                         'limit': 600, 'time': (60*15),
                         'lastExceeded': None},
             'long': {'usageFieldIndex': 1, 'usage': 0,
                        # 60s * 60m * 24 = 1 day
                        'limit': 30000, 'time': (60*60*24),
                        'lastExceeded': None}}))
def __init__ ( self ) : super ( DefaultRateLimiter , self ) . __init__ ( ) self . rules . append ( XRateLimitRule ( { 'short' : { 'usageFieldIndex' : 0 , 'usage' : 0 , 'limit' : 600 , 'time' : ( 60 * 15 ) , 'lastExceeded' : None } , 'long' : { 'usageFieldIndex' : 1 , 'usage' : 0 , 'limit' : 30000 , 'time' : ( 60 * 60 * 24 ) , 'lastExceeded' : None } } ) )
Strava API usage is limited on a per-application basis using a short term,
        15 minute, limit and a long term, daily, limit. The default rate limit
        allows 600 requests every 15 minutes, with up to 30,000 requests per day.
        This limit allows applications to make 40 requests per minute for about half the day.