From 4c630214186e867348155117054bde41f275d317 Mon Sep 17 00:00:00 2001 From: Ryan Mullen Date: Thu, 16 Nov 2023 19:40:57 -0800 Subject: [PATCH] feat: add messaging get request --- src/InboundGarminWrapper.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/InboundGarminWrapper.ts b/src/InboundGarminWrapper.ts index a250c64..a9c8074 100644 --- a/src/InboundGarminWrapper.ts +++ b/src/InboundGarminWrapper.ts @@ -162,4 +162,14 @@ export class InboundGarminWrapper { const opts = Object.assign(this.baseGetOpts, options); return await request(`https://${this.IPCUrl}/IPCInbound/V1/Emergency.svc/Version`, opts); } + + /** + * @see https://explore.garmin.com/IPCInbound/docs/#!/Messaging.svc/VersionGET + * + * @params options + */ + public async getMessagingVersion(options: RequestInit = {}) { + const opts = Object.assign(this.baseGetOpts, options); + return await request(`https://${this.IPCUrl}/IPCInbound/V1/Messaging.svc/Version`, opts); + } }