@@ -184,7 +184,7 @@ def read_cached_token() -> str:
184184
185185# Token access URL
186186
187- AUTH_URL = 'https://oauth.blue. fermax.com /oauth/token'
187+ AUTH_URL = 'https://oauth-pro-duoxme. fermax.io /oauth/token'
188188
189189# Authorization headers
190190
@@ -227,7 +227,7 @@ def get_json_headers(bearer_token: str) -> str:
227227
228228# Pairing url
229229
230- PAIRINGS_URL = 'https://blue .fermax.com /pairing/api/v3/pairings/me'
230+ PAIRINGS_URL = 'https://pro-duoxme .fermax.io /pairing/api/v3/pairings/me'
231231
232232# Function - Pairings
233233
@@ -255,7 +255,7 @@ def pairings(bearer_token: str) -> tuple:
255255# Function - Directed opendoor
256256
257257def directed_opendoor (bearer_token : str , deviceId : str , accessId : str ) -> str :
258- directed_opendoor_url = f'https://blue .fermax.com /deviceaction/api/v1/device/{ deviceId } /directed-opendoor'
258+ directed_opendoor_url = f'https://pro-duoxme .fermax.io /deviceaction/api/v1/device/{ deviceId } /directed-opendoor'
259259
260260 payload = json .dumps (accessId )
261261
@@ -289,7 +289,7 @@ def get_user_info():
289289 """Gets user information"""
290290
291291 # Perform the GET request
292- url = "https://blue .fermax.com /user/api/v1/users/me"
292+ url = "https://pro-duoxme .fermax.io /user/api/v1/users/me"
293293 response = requests .get (url , headers = get_json_headers (bearer_token ))
294294
295295 # Check the status of the response
@@ -326,7 +326,7 @@ def get_user_info_json():
326326 """Gets the user information in json format"""
327327
328328 # Perform the GET request
329- url = "https://blue .fermax.com /user/api/v1/users/me"
329+ url = "https://pro-duoxme .fermax.io /user/api/v1/users/me"
330330 response = requests .get (url , headers = get_json_headers (bearer_token ))
331331
332332 # Check the status of the response
@@ -349,7 +349,7 @@ def get_pairings_info():
349349 """Obtains information from the user's paired devices"""
350350
351351 # Perform the GET request
352- url = "https://blue .fermax.com /pairing/api/v3/pairings/me"
352+ url = "https://pro-duoxme .fermax.io /pairing/api/v3/pairings/me"
353353 response = requests .get (url , headers = get_json_headers (bearer_token ))
354354
355355 # Check the status of the response
@@ -385,7 +385,7 @@ def get_pairings_info_json():
385385 """Gets the user's paired device information in .json format"""
386386
387387 # Perform the GET request
388- url = "https://blue .fermax.com /pairing/api/v3/pairings/me"
388+ url = "https://pro-duoxme .fermax.io /pairing/api/v3/pairings/me"
389389 response = requests .get (url , headers = get_json_headers (bearer_token ))
390390
391391 # Check the status of the response
@@ -408,7 +408,7 @@ def get_mydevice_info():
408408 """Obtains information from the user's intercom"""
409409
410410 # Perform the GET request
411- url = "https://blue .fermax.com /deviceaction/api/v1/device/{}" .format (deviceId )
411+ url = "https://pro-duoxme .fermax.io /deviceaction/api/v1/device/{}" .format (deviceId )
412412 response = requests .get (url , headers = get_json_headers (bearer_token ))
413413
414414 # Check the status of the response
@@ -452,7 +452,7 @@ def get_mydevice_info_json():
452452 """Gets the user's intercom information in .json format"""
453453
454454 # Perform the GET request
455- url = "https://blue .fermax.com /deviceaction/api/v1/device/{}" .format (deviceId )
455+ url = "https://pro-duoxme .fermax.io /deviceaction/api/v1/device/{}" .format (deviceId )
456456 response = requests .get (url , headers = get_json_headers (bearer_token ))
457457
458458 # Check the status of the response
@@ -475,7 +475,7 @@ def get_mydevice_history():
475475 """Get the user's intercom history"""
476476
477477 # Perform the GET request
478- url = "https://blue .fermax.com /services2/api/v1/services/{}" .format (deviceId )
478+ url = "https://pro-duoxme .fermax.io /services2/api/v1/services/{}" .format (deviceId )
479479 response = requests .get (url , headers = get_json_headers (bearer_token ))
480480
481481 # Check the status of the response
@@ -517,7 +517,7 @@ def get_mydevice_history_json():
517517 """Gets the user's intercom history in json format"""
518518
519519 # Perform the GET request
520- url = "https://blue .fermax.com /services2/api/v1/services/{}" .format (deviceId )
520+ url = "https://pro-duoxme .fermax.io /services2/api/v1/services/{}" .format (deviceId )
521521 response = requests .get (url , headers = get_json_headers (bearer_token ))
522522
523523 # Check the status of the response
0 commit comments