PHP Classes

Request for fitnesssyncer API

Recommend this page to a friend!

      PHP OAuth Library  >  All threads  >  Request for fitnesssyncer API  >  (Un) Subscribe thread alerts  
Subject:Request for fitnesssyncer API
Summary:Fitness syncer combines garmin, fitbit and many others into one
Messages:9
Author:kab
Date:2023-11-10 16:34:12
 

  1. Request for fitnesssyncer API   Reply   Report abuse  
Picture of kab kab - 2023-11-10 16:34:12

  2. Re: Request for fitnesssyncer API   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2023-11-12 03:53:17 - In reply to message 1 from kab
Hello Kab,

Sure, I can try to add support to that API soon. Can you wait until next weekend so I can have more time to do that?

  3. Re: Request for fitnesssyncer API   Reply   Report abuse  
Picture of kab kab - 2023-11-14 12:47:49 - In reply to message 2 from Manuel Lemos
Cool.

Wait?
Perfectly happy to wait of course. You are a start.

  4. Re: Request for fitnesssyncer API   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2023-11-20 22:20:08 - In reply to message 3 from kab
Hello Kab,

I added support to Fitnesssyncer API. Please follow these steps:

1. Try it using the example script:

phpclasses.org/package/7700-PHP-Aut ...

2. Create a Fitnesssyncer application here:

fitnesssyncer.com/account/developer

In the end, it will provide you with a client ID and client secret to use in the script above.

3. Contact Fitnesssync support people using the form on the page below to ask to change the redirect URL so the user browser returns to the site of your application that will use a script like the example above.

fitnesssyncer.com/ContactUs.html

Can you try the steps above and reply here to let me know if it worked for you?

  5. Re: Request for fitnesssyncer API   Reply   Report abuse  
Picture of kab kab - 2023-11-20 23:03:40 - In reply to message 4 from Manuel Lemos
Thanks. That was quick.

Unfortunately they will not change the redirect url. I had asked them that before and that was indeed what I was having problems with as I was trying to do this on my own -- not being able to get the code back from their redirect url. Apparently it is possible to follow a redirect, but no luck for me so far.

I will give your class a try. Thanks!

As I meant to say last time - you are a star (not start :) )

  6. Re: Request for fitnesssyncer API   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2023-11-21 03:34:28 - In reply to message 5 from kab
Hello Kab,

I have asked them how I can get the code without changing the redirect URL. I am waiting for their answer.

  7. Re: Request for fitnesssyncer API   Reply   Report abuse  
Picture of kab kab - 2023-11-21 10:06:28 - In reply to message 6 from Manuel Lemos
cool. thamks.

  8. Re: Request for fitnesssyncer API   Reply   Report abuse  
Picture of kab kab - 2023-11-21 10:06:42 - In reply to message 6 from Manuel Lemos
cool. thanks.

  9. Re: Request for fitnesssyncer API   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2023-11-22 02:37:02 - In reply to message 7 from kab
Hello Kab,

Until now, they have not replied.

I used their redirect URL for personal applications in the test script.

I run the test script, and after the user authorizes access to the API, the user's browser is redirected to the personal site.

Then, I replaced the initial part of the personal site URL with the URL of the test script, preserving the query parameters.

This way, I could test the script, and it worked.

We need to figure out how to make the user follow the process to the personal site and somehow capture the query parameters, maybe with some iframe and JavaScript code. I just could not figure out how to do it. Do you have any idea?