Jump to content
C4 Forums | Control4

Fitbit driver and oAuth question


msgreenf

Recommended Posts

I am thinking about writing a driver to use FitBit data in your system.

 

But I am a little stuck on how the OAuth transaction would work.  So I could print out the Oauth URL for you to copy and paste into a browser, but how would I get the session back?

Link to comment
Share on other sites


I think with most OAuth, you don't get a session key back, you have the user authorize the 'app' (your driver, in this case), and you end up getting some kind of access token that's specific to your app, the client login, and some expiration.

 

You sometimes have to use that access token to get a session key, which you use in transactions.  It really depends on the FitBit API, and you'll have to find out the specifics from them.  OAuth is very flexible, and can be done many ways, unfortunately.

 

RyanE

Link to comment
Share on other sites

I am thinking about writing a driver to use FitBit data in your system.

But I am a little stuck on how the OAuth transaction would work. So I could print out the Oauth URL for you to copy and paste into a browser, but how would I get the session back?

Now this would be a super cool driver I would def beta test it! Love my fitbit

Link to comment
Share on other sites

  • 4 weeks later...
  • 3 months later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.