diff --git a/connectedcar/api.py b/connectedcar/api.py index e087315..36cb1b1 100644 --- a/connectedcar/api.py +++ b/connectedcar/api.py @@ -23,7 +23,7 @@ def __init__(self, access_token, region): 'auth-token': access_token, 'Accept': '*/*', 'Accept-Language': 'en-US', - 'User-Agent': 'fordpass-na/353 CFNetwork/1121.2.2 Darwin/19.3.0', + 'User-Agent': 'FordPass/5 CFNetwork/1327.0.4 Darwin/21.2.0', 'Content-Type': 'application/json', 'Accept-Encoding': 'gzip, deflate, br', 'Application-Id': regions[region] diff --git a/connectedcar/connectedcar.py b/connectedcar/connectedcar.py index 29453c6..e29478f 100644 --- a/connectedcar/connectedcar.py +++ b/connectedcar/connectedcar.py @@ -49,7 +49,7 @@ def get_user_access_token(self, username, password): 'Accept': '*/*', 'Accept-Language': 'en-US', 'Content-Type': 'application/x-www-form-urlencoded', - 'User-Agent': 'fordpass-na/353 CFNetwork/1121.2.2 Darwin/19.3.0', + 'User-Agent': 'FordPass/5 CFNetwork/1327.0.4 Darwin/21.2.0', 'Accept-Encoding': 'gzip, deflate, br', } @@ -99,7 +99,7 @@ def exchange_refresh_token(self, refresh_token): 'Accept': '*/*', 'Accept-Language': 'en-US', 'Content-Type': 'application/json', - 'User-Agent': 'fordpass-na/353 CFNetwork/1121.2.2 Darwin/19.3.0', + 'User-Agent': 'FordPass/5 CFNetwork/1327.0.4 Darwin/21.2.0', 'Accept-Encoding': 'gzip, deflate, br', 'Application-Id': self.region } diff --git a/connectedcar/requester.py b/connectedcar/requester.py index 2e27d8e..9466c94 100644 --- a/connectedcar/requester.py +++ b/connectedcar/requester.py @@ -17,7 +17,7 @@ def call(method, url, **kwargs): if "headers" not in kwargs: kwargs["headers"] = {} - kwargs['headers']['User-Agent'] = 'fordpass-na/353 CFNetwork/1121.2.2 Darwin/19.3.0' + kwargs['headers']['User-Agent'] = 'FordPass/5 CFNetwork/1327.0.4 Darwin/21.2.0' try: response = requests.request(method, url, timeout=310, **kwargs)