10-24-2014 21:28
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

10-24-2014 21:28
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hi,
I am creating an android app which will use the fitbit users data. I have the authorization using OAuth.io library and have received a token and a secret. I have a question that since I am using OAuth.io for authorization, the token I got, is it the final access token and if it is then how should I use it to get other information for users like his latest activities Also how can I get the client ID. I am trying the resource API bt since I dont have client ID it fived oauth error. Can anybody help as I have read the documentation but not able to understand how should I do it.
Thanks..

- Labels:
-
OAuth 1.0a
10-24-2014 21:40
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


10-24-2014 21:40
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
What exact API endpoint are you trying to call?
Why do you need client id?
Senior Software Developer at Fitbit

10-24-2014 22:48 - edited 10-24-2014 22:52
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

10-24-2014 22:48 - edited 10-24-2014 22:52
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Basically I need the user ID. I am trying the API
GET http://api.fitbit.com/1/user/228TQ4/activities/date/2010-02-25.json to get the user activities. But I dont have the ID .
I am able to get response now when I use http://api.fitbit.com/1/user/-/activities/date/2010-02-25.json for the active user. But in case I need to use user ID, how can I get it?
Thanks

10-24-2014 22:51
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


10-24-2014 22:51
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
In your particular api url that you pasted user id is: 228TQ4
you may also skip it and it should be like:
http://api.fitbit.com/1/user/-/activities/date/2010-02-25.json
this way you'll get what ever user's data whou secret key you're using to make request.
I suggest go through documentation here: https://wiki.fitbit.com/display/API/Fitbit+API
it has all information on how the api works. In most of the cases you don't need user id at all.
Senior Software Developer at Fitbit

