Announcement

Collapse
No announcement yet.

connect.garmin.com/signin question

Collapse
X
  • Time
  • Show
Clear All
new posts

  • #16
    Originally posted by JEHEGE View Post
    In fact, Garmin uses the complete URL including its query parameters. I did not check, if using the base URL is sufficient.

    However, the GAuth widget is already parameterized, so IMHO the query string should be obsolete in step 3. Just give it a try.
    It actually seems to want the full URL again. Just making that simple change to the base URL breaks it; it doesn't get the needed response back.

    Comment


    • #17
      I found this on the garmin site.
      https://sso.garmin.com/sso/js/gauth-widget.js?20130313

      Originally posted by JEHEGE View Post
      In fact, Garmin uses the complete URL including its query parameters. I did not check, if using the base URL is sufficient.

      However, the GAuth widget is already parameterized, so IMHO the query string should be obsolete in step 3. Just give it a try.

      Comment


      • #18
        JEHEGE, I did get this working, in Perl, thanks to your guidance here, and a few glances at the tapiriik code. Well, I'm authenticated and pulling the JSON down anyway. I still need to parse, but that's the easy stuff.

        Comment


        • #19
          If someone get this working in C# would you please consider to contribute to this project?
          https://github.com/SuperRembo/GarminConnectClient

          Comment


          • #20
            I was able to get step 1 - 3 to work but I dont receive the information to complete the login, it just returns the initial page html again. What am I doing wrong??

            Thanks,
            Ron

            // Step 1
            WebClient wc = new WebClient();
            var result = wc.DownloadString(url);
            string[] splt1 = Regex.Split(result, "<!-- flowExecutionKey: ");
            string[] splt2 = Regex.Split(splt1[1], "] -->");
            var flowExecutionKey = splt2[0].Replace("[", "");

            // Step 2
            var formParams = new NameValueCollection();
            formParams.Add("_eventId", "submit");
            formParams.Add("displayNameRequired", "false");
            formParams.Add("embed", "true");
            formParams.Add("lt", flowExecutionKey);
            formParams.Add("password", "pwd");
            formParams.Add("username", "rsh");
            formParams.Add("service", "http://connect.garmin.com/post-auth/login");
            formParams.Add("redirectAfterAccountLoginUrl", "http://connect.garmin.com/post-auth/login");
            formParams.Add("redirectAfterAccountCreationUrl", "http://connect.garmin.com/post-auth/login");
            formParams.Add("webhost", "olaxpw-connect00.garmin.com");
            formParams.Add("clientId", "GarminConnect");
            formParams.Add("gauthHost", "https://sso.garmin.com/sso");
            formParams.Add("rememberMeShown", "true");
            formParams.Add("rememberMeChecked", "false");
            formParams.Add("consumeServiceTicket", "false");
            formParams.Add("id", "gauth-widget");
            formParams.Add("embedWidget", "false");
            formParams.Add("cssUrl", "https://static.garmincdn.com/com.garmin.connect/ui/src-css/gauth-custom.css");
            formParams.Add("source", "http://connect.garmin.com/en-US/signin");
            formParams.Add("createAccountShown", "true");
            formParams.Add("openCreateAccount", "false");
            formParams.Add("usernameShown", "true");
            formParams.Add("displayNameShown", "false");
            formParams.Add("initialFocus", "true");
            formParams.Add("locale", "en");

            using (var wb = new WebClient())
            {
            var response = wb.UploadValues(url, "POST", formParams);
            var responseString = Encoding.Default.GetString(response);
            }

            Comment


            • #21
              Okay I got it working do that the head request is processed and it issues me the Service ticket, but Im not sure what to do next.

              I am trying to get all activities using:
              http://connect.garmin.com/proxy/acti...&currentPage=1

              But Im getting a 403 (Forbidden) exception. Am I supposed to put the Service ticket in the headers, or what am I missing?

              Thanks,
              Ron

              Comment


              • #22
                I mailed - Developer.Program@garmin.com

                this is their reply , prepare yourself it implies they now charge $5000 to use the api.
                ###
                Due to the increasingly high demand for the Garmin Connect API, we are now strategically limiting the scope of access to vetted developers. Developers who are admitted into the program will be charged a one-time $5,000 administrative fee to cover the extensive engineering and server support required for the Connect program.
                ###

                in short , WTF ?

                Comment


                • #23
                  has anyone got this working in php / zend ?

                  Comment


                  • #24
                    Hi Guys,
                    Can anyone provide me php script for getting user activities and also with auth ?
                    Thanks

                    Comment


                    • #25
                      Yeah,
                      It works now. It's currently more quick and dirty code but the login seams to work. Thanks to the forum. (Perl)

                      Comment


                      • #26
                        Query garmin connect with Excel WebQuery

                        Hi All,

                        I am working on an Excel sheet to analyze progression based on the activity page of Garmin connect. To read the source date I use Excel WebQuery. The downside however is that it seems impossible to add credentials to the query and therby you have to go to the properties and logon manually every time to get the data loaded.

                        Thanks to the earlier posted url I was able to create an url that enters my username but (off course) no password. I tried adding the username and password to the iqy (connection file for Excel and other Microsoft programs) but unfortunately the username nor the password is "copied" to the page.

                        Originally posted by URL
                        https://sso.garmin.com/sso/login?service=http%3A%2F%2Fconnect.garmin.com%2Fpost-auth%2Flogin&webhost=olaxpw-connect07.garmin.com&source=http%3A%2F%2Fconnect.garmin.com%2Fen-US%2Fsignin&redirectAfterAccountLoginUrl=http%3A%2F%2Fconnect.garmin.com%2Factivities&redirectAfterA ccountCreationUrl=http%3A%2F%2Fconnect.garmin.com%2Fpost-auth%2Flogin&gauthHost=https%3A%2F%2Fsso.garmin.com%2Fsso&locale=en&id=gauth-widget&cssUrl=https%3A%2F%2Fstatic.garmincdn.com%2Fcom.garmin.connect%2Fui%2Fsrc-css%2Fgauth-custom.css&clientId=GarminConnect&rememberMeShown=false&rememberMeChecked=true&createAccountShown=fa lse&openCreateAccount=false&displayNameShown=false&consumeServiceTicket=false&initialFocus=true&embe dWidget=false&socialEnabled=false
                        The username can be added by "&username=(username)", however I tried to add the username and password via the IQY file as shown below.

                        Originally posted by IQY_FILE
                        WEB
                        1
                        https://sso.garmin.com/sso/login?ser...lEnabled=false

                        username=(username)
                        password=(password)

                        Selection=activitiesForm:activitiesGrid:tu,activitiesForm:activitiesGrid:n
                        Formatting=None
                        PreFormattedTextToColumns=True
                        ConsecutiveDelimitersAsOne=True
                        SingleBlockTextImport=False
                        DisableDateRecognition=False
                        DisableRedirections=False
                        I am wondering if there is anyone who has experience on this matter and was able to create an autologon for Excel's webquery.

                        Comment


                        • #27
                          bonjour à tous
                          Je suis en cours de réalisation d'un projet médical dont je dois récupérer les données depuis le compte sur garmin surtout le nombre d'heure de sommeil et la fréquence cardiaque mais j'ai pas pu faire je n'arrive pas à les récupérer.
                          Quelqu'un aurait une idée??

                          Comment


                          • #28
                            I rewrote my code to handle the new login back in February and everything has been working fine. Just this week http://connect.garmin.com/proxy/acti...art=0&limit=50 stopped working again. It seems like the login process hasn't changed and I can get the Dashboard page after the login but am getting 403 on the /activity-search-service-1.2/json/activities request. I get the 403 even in Firefox and Chrome so I don't think it has anything to do with my code. Anybody seen this break recently?

                            Comment


                            • #29
                              Originally posted by BIKESMARTAPP View Post
                              I rewrote my code to handle the new login back in February and everything has been working fine. Just this week http://connect.garmin.com/proxy/acti...art=0&limit=50 stopped working again. It seems like the login process hasn't changed and I can get the Dashboard page after the login but am getting 403 on the /activity-search-service-1.2/json/activities request. I get the 403 even in Firefox and Chrome so I don't think it has anything to do with my code. Anybody seen this break recently?
                              It's broken for me too.

                              There was a message somewhere on this forum a few weeks back that Garmin was changing their policy on API access, requiring a one-time $5000 fee to access it. It's possible that they've finally shut it down for "the rest of us".

                              Based on that, I'm giving up on using Garmin's API, and I'm looking into other options. I like to pull the data into my own database/reporting at home, and I want it all automated -- like it has been for a few years. So the first thing I'm looking into is utilizing another provider's API, after data is synced to them from Garmin. There are syncing services out there (like syncmetrics.com), and those seem to still be working. Not sure exactly how they do it but I suppose that is another thing to look into.
                              Last edited by DALE.FRANCUM; 06-30-2014, 09:43 AM.

                              Comment


                              • #30
                                Also, I'm going to look into other device options. I like my Edge 510, and the Garmin Connect site is fine, but in my opinion, Garmin isn't a company that cares about its customers. Things seem to get worse as opposed to better.

                                Comment

                                Working...
                                X