07-08-2014 12:51
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

07-08-2014 12:51
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hi,
I am trying to build an application that allows user to access their fitbit data, I did the following steps:
1- I register a user using fitbit.com and register a testing app using dev.fitbit.com.
2- I got a customer and secret key.
3- Write a java code to authenticate a user and get access token.
All the above steps was done successfully.
Now I am trying to register a new user through my java code using fitbit API. keep in mind I am using the same customer and secret key but trying to register a new user.
Is this a valid case? and if so how can I do it?
Your help is appreciated.
Thanks
Answered! Go to the Best Answer.

Accepted Solutions
07-08-2014 14:52
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


07-08-2014 14:52
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
@rana wrote:
Sorry if I caused any inconvenience. I want to understand the flow so I can do a proper implementation.
Let me summarized what I have understand:
1- user will register through fitbit.com
2- user register his application and get customer and secret key
3- user will use his customer & secret key to access his data through 3rd party application.
Is that correct?
Now if I want to write and application, every time I want to access user's data I have to ask for the following:
customer & secret key and do the authentication process and access the data. is that correct?
Thanks
Ok, so here is how it works.
Let say there is fitbit user A. If you want to write an app to get this user data you'll need to:
1) Register you app in dev.fitbit.com where your app will be issued consumer key and consumer secret.
2) You may use any user you wish to register you app
3) You need to go through oauth flow process that described here: https://wiki.fitbit.com/display/API/OAuth+Authentication+in+the+Fitbit+API . During this process you'll be issued access token and access token secret that you'll need to store somewhere. You can use these access token and access token secret to make api requests to get data for user A only.
Senior Software Developer at Fitbit

07-08-2014 13:05
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


07-08-2014 13:05
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
What endpoint are you using to register a new user?
Senior Software Developer at Fitbit

07-08-2014 13:29
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

07-08-2014 13:29
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I am using my local server.
Can you please tell me the steps to register a user? What API to call to register a user. I saw this api
subscribe(String subscriberId, LocalUserDetail localUser, FitbitUser fitbitUser, String subscriptionId)
which is not very clear for me, what to fill in the method parameters and whether this is the correct api to call or not?

07-08-2014 14:11 - edited 07-08-2014 14:11
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


07-08-2014 14:11 - edited 07-08-2014 14:11
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
"What API to call to register a user" - this is what I was trying to figure out from you.
Anyways to answer it in short, you are not able to register new fitbit users via fitbit api.
Senior Software Developer at Fitbit

07-08-2014 14:30
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

07-08-2014 14:30
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Sorry if I caused any inconvenience. I want to understand the flow so I can do a proper implementation.
Let me summarized what I have understand:
1- user will register through fitbit.com
2- user register his application and get customer and secret key
3- user will use his customer & secret key to access his data through 3rd party application.
Is that correct?
Now if I want to write and application, every time I want to access user's data I have to ask for the following:
customer & secret key and do the authentication process and access the data. is that correct?
Thanks

07-08-2014 14:52
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


07-08-2014 14:52
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
@rana wrote:
Sorry if I caused any inconvenience. I want to understand the flow so I can do a proper implementation.
Let me summarized what I have understand:
1- user will register through fitbit.com
2- user register his application and get customer and secret key
3- user will use his customer & secret key to access his data through 3rd party application.
Is that correct?
Now if I want to write and application, every time I want to access user's data I have to ask for the following:
customer & secret key and do the authentication process and access the data. is that correct?
Thanks
Ok, so here is how it works.
Let say there is fitbit user A. If you want to write an app to get this user data you'll need to:
1) Register you app in dev.fitbit.com where your app will be issued consumer key and consumer secret.
2) You may use any user you wish to register you app
3) You need to go through oauth flow process that described here: https://wiki.fitbit.com/display/API/OAuth+Authentication+in+the+Fitbit+API . During this process you'll be issued access token and access token secret that you'll need to store somewhere. You can use these access token and access token secret to make api requests to get data for user A only.
Senior Software Developer at Fitbit

07-08-2014 14:52
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


07-08-2014 14:52
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Please refer here for more details: https://wiki.fitbit.com/display/API/Fitbit+API
Senior Software Developer at Fitbit

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

07-09-2014 06:59
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I got the whole picture.
Thank you

10-24-2015 08:19
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

10-24-2015 08:19
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
How do I get access to the wiki?

10-24-2015 12:35
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



10-24-2015 12:35
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
@mistyper: The documentation has moved to https://dev.fitbit.com/docs

04-04-2017 02:12
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

04-04-2017 02:12
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Not able to open "https://wiki.fitbit.com/display/API/OAuth+Authentication+in+the+Fitbit+API" URL. and not able to get the solution.

04-04-2017 02:25
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

04-04-2017 02:25
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Can you explain me what actually do for register and login user from app using API?

