Fitbit nodes - working?

I suspect what I primarily need is someone to help with a template on how to create the right URLs based on the input selections. I can work out most of what is going on but not how the actual URLs are generated (so moving from a /xxx/ to a &xxx= format).

I think moving it out of this combined contrib node might be a good idea and making it standalone. I'd be happy to be guided on how to make a contribution to it. I think the fork I mentioned above would be the best place to start as the authentication does actually work.