From 53a57997ccaa228f20c138192ffc3d8be0e9e17a Mon Sep 17 00:00:00 2001 From: Ryan Mullen Date: Fri, 17 Nov 2023 09:47:55 -0800 Subject: [PATCH 1/2] feat: add pingback get request --- src/InboundGarminWrapper.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/InboundGarminWrapper.ts b/src/InboundGarminWrapper.ts index a9c8074..db2459a 100644 --- a/src/InboundGarminWrapper.ts +++ b/src/InboundGarminWrapper.ts @@ -172,4 +172,14 @@ export class InboundGarminWrapper { const opts = Object.assign(this.baseGetOpts, options); return await request(`https://${this.IPCUrl}/IPCInbound/V1/Messaging.svc/Version`, opts); } + + /** + * @see https://explore.garmin.com/IPCInbound/docs/#!/Pingback.svc/VersionGET + * + * @params options + */ + public async getPingbackVersion(options: RequestInit = {}) { + const opts = Object.assign(this.baseGetOpts, options); + return await request(`https://${this.IPCUrl}/IPCInbound/V1/Pingback.svc/Version`, opts); + } } From 98662ac6561da9eedbb444dc27646349f5c29cab Mon Sep 17 00:00:00 2001 From: Ryan Mullen Date: Fri, 17 Nov 2023 09:48:24 -0800 Subject: [PATCH 2/2] ran linter --- src/InboundGarminWrapper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/InboundGarminWrapper.ts b/src/InboundGarminWrapper.ts index db2459a..df38cd1 100644 --- a/src/InboundGarminWrapper.ts +++ b/src/InboundGarminWrapper.ts @@ -175,7 +175,7 @@ export class InboundGarminWrapper { /** * @see https://explore.garmin.com/IPCInbound/docs/#!/Pingback.svc/VersionGET - * + * * @params options */ public async getPingbackVersion(options: RequestInit = {}) {