Giter Club home page Giter Club logo

Comments (3)

matin avatar matin commented on June 19, 2024 1

I did some research on this. I'll test some of the endpoints I found over the weekend and add them here

from garth.

Richard-Tarbell avatar Richard-Tarbell commented on June 19, 2024 1

That works perfect for me! Thanks @matin!! Using Garth is definitely gonna be an upgrade to my project by eliminating the need for users to download the file externally.

For anyone who was previously using garmin_golf here's the garth.connectapi() equivalent for the endpoints requiring parameters.

scorecardID = 123456789
hole_number = 1

round_stats = garth.connectapi(
    f"gcs-golfcommunity/api/v2/scorecard/detail",
    params={"scorecard-ids":scorecardID,"include-longest-shot-distance":"true"},
)

hole_details = garth.connectapi(
    f"gcs-golfcommunity/api/v2/shot/scorecard/{scorecardID}/hole",
    params={"hole-numbers":hole_number, "image-size":"IMG_730X730", "_":"1635952489437"},
)

from garth.

matin avatar matin commented on June 19, 2024

@Richard-Tarbell figured it out ...

Take a look at the endpoints in garmin-download.js and remove the initial part of https://connect.garmin.com/modern/proxy.

For example, I'm able to do the following:
garth.connectapi('/gcs-golfcommunity/api/v2/player/stats')

The same should apply for the other endpoints.

Let me know if that works for you as well.

from garth.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.