Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

FitBit API newbie here:Getting data back after authentication

I am new to the FitBit API and even newer to OAuth2.  I am creating a webapp with ColdFusion 2016. I beleieve I am able to authenticate to FitBit and I get returned to my URI as I should.

 

My questions is...

Once I am returned, what's the next step? Do I deserialize JSON returned?  My URI page is currently blank and I ready to start writing a handler applet for the data returned but the documentation doesn't illustrate real well what these next steps are.

 

Best Answer
0 Votes
2 REPLIES 2

@XCentric Depends on the flow you're using, but either way you'll need what's in the URL.

 

Implicit: access token as a url fragment

Authorization: authorization code as a url parameter

 

More info on the API docs.

Andrew | Community Moderator, Fitbit

What motivates you?

Best Answer
0 Votes

Thank you for your reply, Andrew.  I am currently using Autorization Code Grant Flow.  My question, more specifically is, how do I impliment the POST code in order to exchange the authorization code for the refresh token code? The API docs are not clear on HOW to impliment it.

Best Answer
0 Votes