Skip to content

Commit 8bad13c

Browse files
authored
Fix refresh access token url (#11)
1 parent 50145d3 commit 8bad13c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

utils/enlightenAPI_v4.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def __refresh_access_token(self):
5353
The full web request result of the token refresh
5454
'''
5555
print(self.__log_time() + "Refreshing access_token...")
56-
url = f'{self.config["api_url"]}/oauth/token?grant_type=refresh_token&refresh_token={self.config["refresh_token"]}'
56+
url = f'{self.config["api_url"]}oauth/token?grant_type=refresh_token&refresh_token={self.config["refresh_token"]}'
5757
# Enlighten API v4 Quickstart says this should be a GET request, but that seems to be incorrect. POST works.
5858
response = requests.post(url, auth=(self.config['app_client_id'], self.config['app_client_secret']))
5959
refresh_successful = self.__assert_success(response, False)

0 commit comments

Comments
 (0)