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

Country and City depreciated ?

Hi,

 

My API keeps popping an error. I tried this due to the city and country being missing from the API results ?

 

API - 

GET https://api.fitbit.com/1/user/[user-id]/profile.json

 

The docs say its still there - https://dev.fitbit.com/docs/user/

 

Has this been depreciated or is there a bug? I really depended on the country being there!

 

Sam!

See advanced Fitbit statistics and leaderboards at - https://bitstats.net
Best Answer
0 Votes
9 REPLIES 9

You need the 'location' scope: https://dev.fitbit.com/docs/oauth2/#scope

Best Answer
0 Votes

Hi Jeremiah,

 

I'm using the location scope and city and country are still blank. What else can I try?

Best Answer
0 Votes
Are you sure the user hasn't un-checked that option when they authed with your app?
See advanced Fitbit statistics and leaderboards at - https://bitstats.net
Best Answer
0 Votes

Yes because I'm still developing this version so the user is myself.

Best Answer
0 Votes
What call are you making?
See advanced Fitbit statistics and leaderboards at - https://bitstats.net
Best Answer
0 Votes
1/user/-/friends/leaderboard.json
Best Answer
0 Votes

It's not a required field and many people do not fill it in.

Best Answer
0 Votes
That's a fair point, but I fill it in and I'm not seeing it on my profile.
Best Answer
0 Votes
Does it appear when you use the profile endpoint?
See advanced Fitbit statistics and leaderboards at - https://bitstats.net
Best Answer