Skip to content

Commit

Permalink
feat: add configuration version get request
Browse files Browse the repository at this point in the history
  • Loading branch information
Rymul committed Nov 17, 2023
1 parent d3761da commit aa63f3b
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 @@ -194,4 +194,14 @@ export class InboundGarminWrapper {
const opts = Object.assign(this.baseGetOpts, options);
return await request<DeviceConfig>(`https://${this.IPCUrl}/IPCInbound/V1/Configuration.svc/DeviceConfig`, opts);
}

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

0 comments on commit aa63f3b

Please sign in to comment.