diff --git a/python/WaApi.py b/python/WaApi.py index 9cbc1fb..35ced85 100644 --- a/python/WaApi.py +++ b/python/WaApi.py @@ -42,7 +42,8 @@ def authenticate_with_apikey(self, api_key, scope=None): scope = "auto" if scope is None else scope data = { "grant_type": "client_credentials", - "scope": scope + "scope": scope, + "obtain_refresh_token": "true" } encoded_data = urllib.parse.urlencode(data).encode() request = urllib.request.Request(self.auth_endpoint, encoded_data, method="POST")