-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #59 from Hacksore/develop
Fix #54 and issue with parsed status property tirePressureWarningLampAll
- Loading branch information
Showing
12 changed files
with
79 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
//TODO: Someone needs to figure out the Kia endpoints | ||
// we can then make a fork easier to maintain | ||
|
||
export const API_HOST = 'api.telematics.hyundaiusa.com'; | ||
|
||
export const BASE_URL = 'https://api.telematics.hyundaiusa.com'; | ||
export const BASE_URL = `https://${API_HOST}`; | ||
export const CLIENT_ID = '815c046afaa4471aa578827ad546cc76'; | ||
export const CLIENT_SECRET = 'GXZveJJAVTehh/OtakM3EQ=='; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,30 @@ | ||
// Kia seems to use myuvo.ca as mentioned by @wcomartin | ||
// forks can modify some things to make this work | ||
export const CA_API_HOST = 'mybluelink.ca'; | ||
export const CA_BASE_URL = `https://${CA_API_HOST}`; | ||
export const CLIENT_ORIGIN = 'SPA'; | ||
export const CA_BASE_URL = 'https://mybluelink.ca'; | ||
|
||
export const CA_ENDPOINTS = { | ||
login: `${CA_BASE_URL}/tods/api/lgn`, | ||
logout: `${CA_BASE_URL}/tods/api/lgout`, | ||
// Account | ||
myAccount: `${CA_BASE_URL}/tods/api/acctinfo`, | ||
nextService: `${CA_BASE_URL}/tods/api/nxtsvc`, | ||
preferedDealer: `${CA_BASE_URL}/tods/api/gtprfrdlr`, | ||
// Vehicle | ||
vehicleList: `${CA_BASE_URL}/tods/api/vhcllst`, | ||
vehicleInfo: `${CA_BASE_URL}/tods/api/sltvhcl`, | ||
status: `${CA_BASE_URL}/tods/api/lstvhclsts`, | ||
remoteStatus: `${CA_BASE_URL}/tods/api/rltmvhclsts`, | ||
// Car commands with preauth (PIN) | ||
lock: `${CA_BASE_URL}/tods/api/drlck`, | ||
unlock: `${CA_BASE_URL}/tods/api/drulck`, | ||
start: `${CA_BASE_URL}/tods/api/evc/rfon`, | ||
stop: `${CA_BASE_URL}/tods/api/evc/rfoff`, | ||
locate: `${CA_BASE_URL}/tods/api/fndmcr`, | ||
hornlight: `${CA_BASE_URL}/tods/api/hornlight`, | ||
// System | ||
verifyAccountToken: `${CA_BASE_URL}/tods/api/vrfyacctkn`, | ||
verifyPin: `${CA_BASE_URL}/tods/api/vrfypin`, | ||
verifyToken: `${CA_BASE_URL}/tods/api/vrfytnc`, | ||
}; | ||
login: `${CA_BASE_URL}/tods/api/lgn`, | ||
logout: `${CA_BASE_URL}/tods/api/lgout`, | ||
// Account | ||
myAccount: `${CA_BASE_URL}/tods/api/acctinfo`, | ||
nextService: `${CA_BASE_URL}/tods/api/nxtsvc`, | ||
preferedDealer: `${CA_BASE_URL}/tods/api/gtprfrdlr`, | ||
// Vehicle | ||
vehicleList: `${CA_BASE_URL}/tods/api/vhcllst`, | ||
vehicleInfo: `${CA_BASE_URL}/tods/api/sltvhcl`, | ||
status: `${CA_BASE_URL}/tods/api/lstvhclsts`, | ||
remoteStatus: `${CA_BASE_URL}/tods/api/rltmvhclsts`, | ||
// Car commands with preauth (PIN) | ||
lock: `${CA_BASE_URL}/tods/api/drlck`, | ||
unlock: `${CA_BASE_URL}/tods/api/drulck`, | ||
start: `${CA_BASE_URL}/tods/api/evc/rfon`, | ||
stop: `${CA_BASE_URL}/tods/api/evc/rfoff`, | ||
locate: `${CA_BASE_URL}/tods/api/fndmcr`, | ||
hornlight: `${CA_BASE_URL}/tods/api/hornlight`, | ||
// System | ||
verifyAccountToken: `${CA_BASE_URL}/tods/api/vrfyacctkn`, | ||
verifyPin: `${CA_BASE_URL}/tods/api/vrfypin`, | ||
verifyToken: `${CA_BASE_URL}/tods/api/vrfytnc`, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters