-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add the ability to configure custom request polling timeout and…
… interval values (#82) * feat: add the ability to configure custom request polling timeout and interval values * docs: fix typo
- Loading branch information
Showing
5 changed files
with
48 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ Use the Get Account Vehicles request to see which requests your vehicle supports | |
|
||
## Sample | ||
|
||
Use a random version 4 uuid (there are online generators) as a deviceId. | ||
Use a random version 4 uuid as a deviceId. Generator available [here](https://www.uuidgenerator.net/version4). | ||
|
||
import OnStar from "onstarjs"; | ||
|
||
|
@@ -24,7 +24,11 @@ Use a random version 4 uuid (there are online generators) as a deviceId. | |
username: "[email protected]", | ||
password: "p@ssw0rd", | ||
onStarPin: "1234", | ||
|
||
// Optional | ||
checkRequestStatus: true, // When false, requests are complete when 'In Progress' (Much faster). | ||
requestPollingIntervalSeconds: 6, // When checkRequestStatus is true, this is how often status check requests will be made | ||
requestPollingTimeoutSeconds: 60, // When checkRequestStatus is true, this is when requests while polling are considered timed out | ||
}; | ||
|
||
const onStar = OnStar.create(config); | ||
|
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