07-08-2014 12:51
07-08-2014 12:51
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.
07-08-2014 14:52
07-08-2014 14:52
@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.
07-08-2014 13:05
07-08-2014 13:05
What endpoint are you using to register a new user?
07-08-2014 13:29
07-08-2014 13:29
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
07-08-2014 14:11 - edited 07-08-2014 14:11
"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.
07-08-2014 14:30
07-08-2014 14:30
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
07-08-2014 14:52
@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.
07-08-2014 14:52
07-08-2014 14:52
Please refer here for more details: https://wiki.fitbit.com/display/API/Fitbit+API
07-09-2014 06:59
07-09-2014 06:59
I got the whole picture.
Thank you
10-24-2015 08:19
10-24-2015 08:19
How do I get access to the wiki?
10-24-2015 12:35
10-24-2015 12:35
@mistyper: The documentation has moved to https://dev.fitbit.com/docs
04-04-2017 02:12
04-04-2017 02:12
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
04-04-2017 02:25
Can you explain me what actually do for register and login user from app using API?