Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use different callbacks via Authorization flow #31

Open
RayDeanTech opened this issue Aug 7, 2020 · 0 comments
Open

use different callbacks via Authorization flow #31

RayDeanTech opened this issue Aug 7, 2020 · 0 comments

Comments

@RayDeanTech
Copy link

RayDeanTech commented Aug 7, 2020

Hello! Question, not an issue... I'm kinda a noob at this, but I've followed the demo example, and I've got it working! :)

I will always have to call /authorize first, is that correct?

Will I always be restricted to the single URL Callback as specified in the Fitbit API Setup screen?

In the example.js demo, /callback is executed just fine... it gets profile info.... But, what if I wanted to add another route, say /GetTXCFile?

I guess I'm trying to think of a way where I could have a couple of different routes:

/heartrate
/steps
/getGPSfiles

My ultimate goal though is bulk-downloading the TCX files. I have all the file names, I just don't want to manually download them 1 by 1. So... I'm sure I can create a loop, and use Node's "path" tool... but would you have any ideas on how to capture the XML response, and save it to a file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant