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

Connet more than one user account

HI,

      I have register the user in application regsteration. But i am trying to get information more than one user names. and can you tell me , is it possible to pass the username and password as parameter in the OAuthRequest.

 

 

Thank you

Shan

 

 

Best Answer
0 Votes
5 REPLIES 5

@balupad wrote:

HI,

      I have register the user in application regsteration. But i am trying to get information more than one user names. -  can you please add more details on what are you trying to do?

 and can you tell me , is it possible to pass the username and password as parameter in the OAuthRequest. - nope, this is not possible. This violates user's provacy and common security sence.

 

 

Thank you

Shan

 

 


 See my comments above

Ivan Bahdanau
Senior Software Developer at Fitbit
Best Answer
0 Votes

Hi,

      One of my user is having many devices.But he wants to know the all device information in one screen instead of the login in each and every account . this is my objects.

 

Thank you

Shan.

Best Answer
0 Votes

So if youur user has different trackers he has to have different fitbit accounts.

To read data from different accounts you need to register an app at dev.fitbit.com and go through oauth flow where all the fitbit accounts that your user has will grant permission to you app to read their data.

Please see this post: https://community.fitbit.com/t5/Web-API/Register-user-using-fitbit-API/m-p/372004#U372004 since is has some related info about oauth flow set up.

 also see https://wiki.fitbit.com/display/API/OAuth+Authentication+in+the+Fitbit+API  for more details.

Ivan Bahdanau
Senior Software Developer at Fitbit
Best Answer
0 Votes

Hi,

       I saw the document and example which are in the .net. But i don't know how to do request token for specific user. Because check the HasProtectedResource. and if it is false redirect to the login. but i don't want to redirect it.

 

 

Thank you

Shan.

Best Answer
0 Votes

Please go though documentation here https://wiki.fitbit.com/display/API/Fitbit+API it contains all the information you needed regarding oauth flow(including how to make request_token request).

Also check out https://dev.fitbit.com/apps/oauthtutorialpage it will create a valid CURL request for you. 

Please not request_token will only return to you temporary access token and access token secret. You still need to get you permanent access token and permanent access token secret.

Ivan Bahdanau
Senior Software Developer at Fitbit
Best Answer
0 Votes