diff --git a/rattail_nationbuilder/nationbuilder/webapi.py b/rattail_nationbuilder/nationbuilder/webapi.py index 65a7810..936315b 100644 --- a/rattail_nationbuilder/nationbuilder/webapi.py +++ b/rattail_nationbuilder/nationbuilder/webapi.py @@ -38,7 +38,6 @@ class NationBuilderWebAPI(object): max_retries=None, **kwargs): self.config = config self.app = self.config.get_app() - self.session = None self.base_url = base_url or self.config.require( 'nationbuilder', 'api.base_url') @@ -69,8 +68,8 @@ class NationBuilderWebAPI(object): params['access_token'] = self.access_token if request_method == 'GET': - response = requests.get('{}/{}'.format(self.base_url, api_method), - params=params) + response = self.session.get('{}/{}'.format(self.base_url, api_method), + params=params) else: raise NotImplementedError("unknown request method: {}".format(