Skip to content

Commit

Permalink
chore: add emergency version api
Browse files Browse the repository at this point in the history
  • Loading branch information
Rymul committed Nov 17, 2023
1 parent 482afc9 commit 3fce198
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/InboundGarminWrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,4 +149,14 @@ export class InboundGarminWrapper {
const opts = Object.assign(this.baseGetOpts, options);
return await request<DevicesKey<EmergencyState>>(`https://${this.IPCUrl}/IPCInbound/V1/Emergency.svc/State`, opts);
}

/**
* @see https://explore.garmin.com/IPCInbound/docs/#!/Emergency.svc/VersionGET
*
* @params options
*/
public async getEmergencyVersion(options: RequestInit = {}) {
const opts = Object.assign(this.baseGetOpts, options);
return await request<Version>(`https://${this.IPCUrl}/IPCInbound/V1/Emergency.svc/State`, opts);
}
}

0 comments on commit 3fce198

Please sign in to comment.