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

Heart Rate Intraday broken, who has this working?

According to the docs, this should work, but it doesn't. Who has gotten the heartrate intraday series call working?

 

See screenshot for details:

http://imgur.com/a/27uyS

 

https://api.fitbit.com/1/user/-/activities/heart/date/today/1d/1sec/time/00:00/00:01.json

 

{
    "errors": [
        {
            "errorType": "insufficient_permissions",
            "message": "API client is not authorized by Fitbit to access the resource requested. Visit https://dev.fitbit.com/docs/oauth2 for more information on the Fitbit Web API authorization process."
        }
    ],
    "success": false
}

https://api.fitbit.com/1/user/-/activities/heart/date/today/1d.json

Works fine

Best Answer
0 Votes
7 REPLIES 7

I've got intraday heart-rate calls working. However, it seems to me that your problem may not be with that API call, but with some aspect of your authentication. Have you requested the scope resources that you need (https://dev.fitbit.com/docs/oauth2/#scope)?

Peter McLennan
Gondwana Software
Best Answer
I hear you, but I feel like if I had authentication issues, I'd see it when making the other API call as well.

The scope is the same, yeah? Heartrate?
Best Answer
0 Votes

Yes, that scope should be okay. Have you met the requirements for access to intraday heartrate data (eg, app registered for personal use, etc)?

Peter McLennan
Gondwana Software
Best Answer
0 Votes
Definitely a personal account.

What are you using to get the data? Maybe I can use that library and give it a try.

Sent from my iPhone
Best Answer
0 Votes

I'm using this to handle the OAUTH2 stuff. If you're not using php, that probably won't help you much.

 

My site is http://www.gondwanasoftware.net.au/exerbyte/ (but that won't help you much either).

Peter McLennan
Gondwana Software
Best Answer
0 Votes
I've been known to do some php dev 🙂

I'll give it a shot. Thanks for the replies. Hopefully someone else will chime in and tell me what grievous mistake I've made.

Sent from my iPhone
Best Answer
0 Votes
This seems like you have permission error. 😞
Best Answer
0 Votes