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

403 Forbidden for Heart Rate API

ANSWERED

I'm attempting to retrieve heart rate data using the Fitbit API's. I'm hitting the following endpoint:

 

https://api.fitbit.com/1/user/{User ID}/activities/heart/date/2015-09-01/2015-10-06.json

 

The response is returning a 403 Forbidden. Having checked the Settings/Applications area for the user, I can see the following areas have been granted access to my application by this user:

 

Access profile,friends,weight,food and water logs,Fitbit devices and settings,sleep,activity and exercise,heart rate,location and GPS

 

I'm able to retrieve sleep data without issues and have hit upon this hurdle trying to retrieve the heart rate data. I'm using the OAuth 1.0 mechanism for both requests.

 

Thanks for the help.

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

@hhusain wrote:

I'm attempting to retrieve heart rate data using the Fitbit API's. I'm hitting the following endpoint:

 

https://api.fitbit.com/1/user/{User ID}/activities/heart/date/2015-09-01/2015-10-06.json

 

The response is returning a 403 Forbidden. Having checked the Settings/Applications area for the user, I can see the following areas have been granted access to my application by this user:

 

Access profile,friends,weight,food and water logs,Fitbit devices and settings,sleep,activity and exercise,heart rate,location and GPS

 

I'm able to retrieve sleep data without issues and have hit upon this hurdle trying to retrieve the heart rate data. I'm using the OAuth 1.0 mechanism for both requests.

 

Thanks for the help.


Heart Rate and Location data is not available via OAuth 1.0.  You will need to use OAuth 2.0 to access those endpoints.

View best answer in original post

Best Answer
1 REPLY 1

@hhusain wrote:

I'm attempting to retrieve heart rate data using the Fitbit API's. I'm hitting the following endpoint:

 

https://api.fitbit.com/1/user/{User ID}/activities/heart/date/2015-09-01/2015-10-06.json

 

The response is returning a 403 Forbidden. Having checked the Settings/Applications area for the user, I can see the following areas have been granted access to my application by this user:

 

Access profile,friends,weight,food and water logs,Fitbit devices and settings,sleep,activity and exercise,heart rate,location and GPS

 

I'm able to retrieve sleep data without issues and have hit upon this hurdle trying to retrieve the heart rate data. I'm using the OAuth 1.0 mechanism for both requests.

 

Thanks for the help.


Heart Rate and Location data is not available via OAuth 1.0.  You will need to use OAuth 2.0 to access those endpoints.

Best Answer