def api_calls_left(user, domain='all'):
 max_window = _rules_for_user(user)[(-1)][0]
 max_calls = _rules_for_user(user)[(-1)][1]
 return _get_api_calls_left(user, domain, max_window, max_calls)

def api_calls_left ( user , domain = 'all' ) : max_window = _rules_for_user ( user ) [ ( - 1 ) ] [ 0 ] max_calls = _rules_for_user ( user ) [ ( - 1 ) ] [ 1 ] return _get_api_calls_left ( user , domain , max_window , max_calls )
returns how many api calls in this range this client has .