hyundai-kia-connect-api 3.15.1__py2.py3-none-any.whl → 3.17.0__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -53,9 +53,7 @@ from .utils import (
53
53
  _LOGGER = logging.getLogger(__name__)
54
54
 
55
55
  USER_AGENT_OK_HTTP: str = "okhttp/3.12.0"
56
- USER_AGENT_MOZILLA: str = (
57
- "Mozilla/5.0 (Linux; Android 4.1.1; Galaxy Nexus Build/JRO03C) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.166 Mobile Safari/535.19" # noqa
58
- )
56
+ USER_AGENT_MOZILLA: str = "Mozilla/5.0 (Linux; Android 4.1.1; Galaxy Nexus Build/JRO03C) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.166 Mobile Safari/535.19" # noqa
59
57
 
60
58
 
61
59
  def _check_response_for_errors(response: dict) -> None:
@@ -103,14 +101,15 @@ class KiaUvoApiAU(ApiImpl):
103
101
  def __init__(self, region: int, brand: int, language: str) -> None:
104
102
  self.brand = brand
105
103
  if BRANDS[brand] == BRAND_KIA:
106
- raise APIError("Kia is not supported in Australia yet")
104
+ self.BASE_URL: str = "au-apigw.ccs.kia.com.au:8082"
105
+ self.CCSP_SERVICE_ID: str = "8acb778a-b918-4a8d-8624-73a0beb64289"
106
+ self.APP_ID: str = "4ad4dcde-be23-48a8-bc1c-91b94f5c06f8" # Android app ID
107
+ self.BASIC_AUTHORIZATION: str = "Basic OGFjYjc3OGEtYjkxOC00YThkLTg2MjQtNzNhMGJlYjY0Mjg5OjdTY01NbTZmRVlYZGlFUEN4YVBhUW1nZVlkbFVyZndvaDRBZlhHT3pZSVMyQ3U5VA=="
107
108
  elif BRANDS[brand] == BRAND_HYUNDAI:
108
109
  self.BASE_URL: str = "au-apigw.ccs.hyundai.com.au:8080"
109
110
  self.CCSP_SERVICE_ID: str = "855c72df-dfd7-4230-ab03-67cbf902bb1c"
110
111
  self.APP_ID: str = "f9ccfdac-a48d-4c57-bd32-9116963c24ed" # Android app ID
111
- self.BASIC_AUTHORIZATION: str = (
112
- "Basic ODU1YzcyZGYtZGZkNy00MjMwLWFiMDMtNjdjYmY5MDJiYjFjOmU2ZmJ3SE0zMllOYmhRbDBwdmlhUHAzcmY0dDNTNms5MWVjZUEzTUpMZGJkVGhDTw=="
113
- )
112
+ self.BASIC_AUTHORIZATION: str = "Basic ODU1YzcyZGYtZGZkNy00MjMwLWFiMDMtNjdjYmY5MDJiYjFjOmU2ZmJ3SE0zMllOYmhRbDBwdmlhUHAzcmY0dDNTNms5MWVjZUEzTUpMZGJkVGhDTw=="
114
113
 
115
114
  self.USER_API_URL: str = "https://" + self.BASE_URL + "/api/v1/user/"
116
115
  self.SPA_API_URL: str = "https://" + self.BASE_URL + "/api/v1/spa/"
@@ -1025,7 +1024,9 @@ class KiaUvoApiAU(ApiImpl):
1025
1024
 
1026
1025
  def _get_stamp(self) -> str:
1027
1026
  if BRANDS[self.brand] == BRAND_KIA:
1028
- raise APIError("Kia is not supported in Australia")
1027
+ cfb = base64.b64decode(
1028
+ "IDbMgWBXgic4MAyMgf5PFFRAdGX5O3IyC3uvN3scCs0gDpTFDuyvBorlAH9JMM2/wMc="
1029
+ )
1029
1030
  elif BRANDS[self.brand] == BRAND_HYUNDAI:
1030
1031
  cfb = base64.b64decode(
1031
1032
  "V60WkEmyRQaAfrBF1623/7QL62MjLVbCHdItGzQ1g5T/hkmKmMVTaMHv4cKGzgD3gL8="
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: hyundai_kia_connect_api
3
- Version: 3.15.1
3
+ Version: 3.17.0
4
4
  Summary: Python Boilerplate contains all the boilerplate you need to create a Python package.
5
5
  Home-page: https://github.com/fuatakgun/hyundai_kia_connect_api
6
6
  Author: Fuat Akgun
@@ -1,7 +1,7 @@
1
1
  hyundai_kia_connect_api/ApiImpl.py,sha256=1j5FRTQIILrSzQU6oE5i4J_l8cVvYuMGBmQn-kL7zyg,5018
2
2
  hyundai_kia_connect_api/HyundaiBlueLinkAPIUSA.py,sha256=FVWDzmkO_jsc_r4WzufgxaJkeVYhf9UAw9A6r37b-Dc,26750
3
3
  hyundai_kia_connect_api/KiaUvoAPIUSA.py,sha256=zDSnfUtdExnb1e-x6-qQgqd5nlDaWIHqQyPCrOilPIs,30522
4
- hyundai_kia_connect_api/KiaUvoApiAU.py,sha256=V6AJWo5WmQr4FIxcTBF0ajt9YPGqjkux0P4GALRsGMc,48363
4
+ hyundai_kia_connect_api/KiaUvoApiAU.py,sha256=PCqlh00MEOnCcYpZn9zTk2rdPVdDuI62HXeLEgPz9os,48728
5
5
  hyundai_kia_connect_api/KiaUvoApiCA.py,sha256=7bcDLcJ3JLLoWldPy514eKhWUAo1Gb1mu_3SaXno4v8,30358
6
6
  hyundai_kia_connect_api/KiaUvoApiCN.py,sha256=MjXdDdm1wDVvFZhgg8AjAF6X2SB-AIFMTE5iRmr80QM,47384
7
7
  hyundai_kia_connect_api/KiaUvoApiEU.py,sha256=GqJhJWJ8vD07OG6dIOj5nammzr7822TNcW031A6AQUw,68001
@@ -12,9 +12,9 @@ hyundai_kia_connect_api/__init__.py,sha256=6UwXW6Lj5VnRtWNOt_0dLFdOYlcbysHCc6ol_
12
12
  hyundai_kia_connect_api/const.py,sha256=C25jgV79u7SZF5xDy96gol_CekIkyI4h3goTyDEmng0,1967
13
13
  hyundai_kia_connect_api/exceptions.py,sha256=m7gyDnvA5OVAK4EXSP_ZwE0s0uV8HsGUV0tiYwqofK0,1343
14
14
  hyundai_kia_connect_api/utils.py,sha256=rfhERPXkzqelsaieLtiAyN9xDDTheNyKX5aBPRLrHf4,1117
15
- hyundai_kia_connect_api-3.15.1.dist-info/AUTHORS.rst,sha256=T77OE1hrQF6YyDE6NbdMKyL66inHt7dnjHAzblwuk2A,155
16
- hyundai_kia_connect_api-3.15.1.dist-info/LICENSE,sha256=AsZwIRViAze7ObwO6V6IB0q4caXv6DJS2-3dsU1FWy8,1069
17
- hyundai_kia_connect_api-3.15.1.dist-info/METADATA,sha256=3MwcoBstrA3qyeD5x0x5GfZGespY0K9-Bu0QAWixbuU,5770
18
- hyundai_kia_connect_api-3.15.1.dist-info/WHEEL,sha256=-G_t0oGuE7UD0DrSpVZnq1hHMBV9DD2XkS5v7XpmTnk,110
19
- hyundai_kia_connect_api-3.15.1.dist-info/top_level.txt,sha256=otZ7J_fN-s3EW4jD-kAearIo2OIzhQLR8DNEHIaFfds,24
20
- hyundai_kia_connect_api-3.15.1.dist-info/RECORD,,
15
+ hyundai_kia_connect_api-3.17.0.dist-info/AUTHORS.rst,sha256=T77OE1hrQF6YyDE6NbdMKyL66inHt7dnjHAzblwuk2A,155
16
+ hyundai_kia_connect_api-3.17.0.dist-info/LICENSE,sha256=AsZwIRViAze7ObwO6V6IB0q4caXv6DJS2-3dsU1FWy8,1069
17
+ hyundai_kia_connect_api-3.17.0.dist-info/METADATA,sha256=Kay6dlQAO1DVPOma1LWjQzk0s1Z8KJpdyonUJL_jXxc,5770
18
+ hyundai_kia_connect_api-3.17.0.dist-info/WHEEL,sha256=-G_t0oGuE7UD0DrSpVZnq1hHMBV9DD2XkS5v7XpmTnk,110
19
+ hyundai_kia_connect_api-3.17.0.dist-info/top_level.txt,sha256=otZ7J_fN-s3EW4jD-kAearIo2OIzhQLR8DNEHIaFfds,24
20
+ hyundai_kia_connect_api-3.17.0.dist-info/RECORD,,