Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add emergency get requests #1

Merged
merged 6 commits into from
Nov 17, 2023
Merged

feat: add emergency get requests #1

merged 6 commits into from
Nov 17, 2023

Conversation

Rymul
Copy link
Contributor

@Rymul Rymul commented Nov 17, 2023

added 3 get request for emergency respondent, state, and version

*/
public async getEmergencyState(options: RequestInit = {}) {
const opts = Object.assign(this.baseGetOpts, options);
return await request<DevicesKey<EmergencyState>>(`https://${this.IPCUrl}/IPCInbound/V1/Emergency.svc/State`, opts);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Emergency state requires a query param for IMEI. See docs.

@TarikGul
Copy link
Member

Title needs to be fixed in order for the tests to pass. Change it to feat: add emergency get requests

@Rymul Rymul changed the title Ryan emergency api feat: add emergency get requests Nov 17, 2023
@Rymul Rymul merged commit db1af63 into main Nov 17, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants