Pythe1337N / garmin-connect

Makes it simple to interface with Garmin Connect to get or set any data point.
MIT License
144 stars 58 forks source link

v1.6.0 Fix most features. #56

Closed gooin closed 11 months ago

gooin commented 1 year ago
Abasz commented 1 year ago

Is there a specific reason that you are still using the /proxy/ path on the connect api?

Actually, for some reasons I got errors on that and moved to connectapi.garmin.com without the /proxy/. I checked and I think this is used by Garth as well.

So for instance, activity list service: https://connectapi.garmin.com/activitylist-service/activities/search/activities or download service: https://connectapi.garmin.com/download-service/files/activity/

gooin commented 1 year ago

Is there a specific reason that you are still using the /proxy/ path on the connect api?

Actually, for some reasons I got errors on that and moved to connectapi.garmin.com without the /proxy/. I checked and I think this is used by Garth as well.

So for instance, activity list service: https://connectapi.garmin.com/activitylist-service/activities/search/activities or download service: https://connectapi.garmin.com/download-service/files/activity/

I use UrlClass.ts not url.ts

Abasz commented 1 year ago

Is there a specific reason that you are still using the /proxy/ path on the connect api? Actually, for some reasons I got errors on that and moved to connectapi.garmin.com without the /proxy/. I checked and I think this is used by Garth as well. So for instance, activity list service: https://connectapi.garmin.com/activitylist-service/activities/search/activities or download service: https://connectapi.garmin.com/download-service/files/activity/

I use UrlClass.ts not url.ts

you are right... sorry I missed that.

gooin commented 1 year ago

Is there a specific reason that you are still using the /proxy/ path on the connect api? Actually, for some reasons I got errors on that and moved to connectapi.garmin.com without the /proxy/. I checked and I think this is used by Garth as well. So for instance, activity list service: https://connectapi.garmin.com/activitylist-service/activities/search/activities or download service: https://connectapi.garmin.com/download-service/files/activity/

I use UrlClass.ts not url.ts

you are right... sorry I missed that.

I Will delete it later.😂

gooin commented 1 year ago

Is there a specific reason that you are still using the /proxy/ path on the connect api? Actually, for some reasons I got errors on that and moved to connectapi.garmin.com without the /proxy/. I checked and I think this is used by Garth as well. So for instance, activity list service: https://connectapi.garmin.com/activitylist-service/activities/search/activities or download service: https://connectapi.garmin.com/download-service/files/activity/

I use UrlClass.ts not url.ts

you are right... sorry I missed that.

@Abasz removed...

kspetrov commented 12 months ago

@gooin Hi! What about workout methods? Or this is not in your plan?

gooin commented 12 months ago

Yes, I'm working on this.

Get Outlook for iOShttps://aka.ms/o0ukef


From: Kirill Petrov @.> Sent: Tuesday, October 3, 2023 9:07:24 PM To: Pythe1337N/garmin-connect @.> Cc: Yan Zhitao @.>; Mention @.> Subject: Re: [Pythe1337N/garmin-connect] v1.6.0 Fix most features. (PR #56)

@gooinhttps://github.com/gooin Hi! What about workout methods? Or this is not in your plan?

— Reply to this email directly, view it on GitHubhttps://github.com/Pythe1337N/garmin-connect/pull/56#issuecomment-1744943799, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADJDEBL3WJ3S5L3STP7ABV3X5QEYZAVCNFSM6AAAAAA5O2JRO2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBUHE2DGNZZHE. You are receiving this because you were mentioned.Message ID: @.***>

kspetrov commented 12 months ago

Perfect! :) Thanks a lot!!!

gooin commented 12 months ago

Perfect! :) Thanks a lot!!!

Latest commit added workout methods. See https://github.com/Pythe1337N/garmin-connect/pull/56/commits/901a70f2b217e85454d596baf9d640023a34aa34

pauly commented 11 months ago

Is the whole interface changing here? The original examples aren't working, neither is my code if I switch to this branch. I see the change from

await GCClient.login(process.env.GUSER, process.env.GPASS)
const userProfile = await GCClient.getUserProfile()
const stepData = await GCClient.getSteps(new Date(date))

now there is no getSteps()

gooin commented 11 months ago

Is the whole interface changing here? The original examples aren't working, neither is my code if I switch to this branch. I see the change from

await GCClient.login(process.env.GUSER, process.env.GPASS)
const userProfile = await GCClient.getUserProfile()
const stepData = await GCClient.getSteps(new Date(date))

now there is no getSteps()

steps, sleep, weight, gear are not implemented yet, see GarminConnect.ts

matin commented 11 months ago

@gooin well done! 👏🏽