Skip to content

Commit

Permalink
Fix API calls not working by updating request headers and API base url (
Browse files Browse the repository at this point in the history
#18)

* Fix API calls not working by updating request headers

* Fix API calls not working by updating API url

* Fix API calls not working by updating API url
  • Loading branch information
DevGary authored Jun 4, 2023
1 parent fce3827 commit 3b8e354
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions frigidaire/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
# To keep our logs free of spam, we disable warnings on insecure requests
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)

API_URL = 'https://api.latam.ecp.electrolux.com'
API_URL = 'https://api.us.ecp.electrolux.com'

CLIENT_ID = 'e9c4ac73-e94e-4b37-b1fe-b956f568daa0'
CLIENT_ID = 'Gsdwexj38r1sXSXIPVdxj4DGoU5ZoaI6aW6ZckBI'
USER_AGENT = 'Frigidaire/81 CFNetwork/1206 Darwin/20.1.0'


Expand Down Expand Up @@ -385,11 +385,12 @@ def headers(self):
return {
'session_token': self.session_key,
'x-ibm-client-id': CLIENT_ID,
'x-api-key': CLIENT_ID,
'user-agent': USER_AGENT,
'content-type': 'application/json',
'accept': '*/*',
'accept-language': 'en-us',
'authorization': 'Basic dXNlcjpwYXNz',
'authorization': 'Basic ' + CLIENT_ID,
}

@staticmethod
Expand Down

0 comments on commit 3b8e354

Please sign in to comment.