class APIMethod:
- def __init__(self, *args, **kwargs):
+ def __init__(self):
self.session = requests.Session()
- allowed_param = kwargs.pop('allowed_param', [])
- self.build_parameters(allowed_param, args, kwargs)
-
# Monitoring rate limits
self._remaining_calls = None
self._reset_time = None
upload_api = kwargs.pop('upload_api', False)
use_cache = kwargs.pop('use_cache', True)
- method = APIMethod(*args, **kwargs)
+ method = APIMethod()
+ allowed_param = kwargs.pop('allowed_param', [])
+ method.build_parameters(allowed_param, args, kwargs)
try:
if kwargs.get('create'):
return method