07-09-2014 07:57
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

07-09-2014 07:57
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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

07-09-2014 08:51 - edited 07-09-2014 08:52
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


07-09-2014 08:51 - edited 07-09-2014 08:52
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
@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
Senior Software Developer at Fitbit

07-09-2014 08:57
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

07-09-2014 08:57
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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.

07-09-2014 09:23
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


07-09-2014 09:23
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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+Authenti
Senior Software Developer at Fitbit

07-09-2014 14:13
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

07-09-2014 14:13
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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.

07-09-2014 14:59
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


07-09-2014 14:59
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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.
Senior Software Developer at Fitbit

