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

Re: API client is not authorized by Fitbit to access the resource requested.


@dezso.vasswrote:
Dear All,

I would like to get Heart Rate Intraday Time Series for 1sec detail level.
Unfortunatelly, Im not able to get data. Please help me why I don't have permission for this query ?

Query:
1/user/-/activities/heart/date/today/today/1sec/time/00:00/23:59.json

This is the answer from WebAPI:
Array ( [errors] => Array ( [0] => Array ( [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] => )

Thank you in advance,
Dezso

 



WHAAAAAAAAA....... I’m not getting what you’re trying to do.....But then again,I’m not good at this stuff.

“Just keep swimming,Just keep swimming, swimming, swimming”- Dory
If you find my answers helpful, Vote for them and accept them as the Solution!
Ionic | Charge 2 | iPad 2017 running iOS 12.1.2 Beta
Best Answer
0 Votes
2 REPLIES 2

Hi @dezso.vass,

 

I'm going to move your post to the Web API forum, where it can get the attention it deserves.It was originally posted in the Ionic hardware forum.

Edit: I see you've posed it here already:

 https://community.fitbit.com/t5/Web-API-Development/API-client-is-not-authorized-by-Fitbit-to-access...

Work out...eat... sleep...repeat!
Dave | California

Best Answer
0 Votes

You need to request the permission to FitBit. 

 

All applications have access to day-level data. Minute and second-level data (intraday time series) is reserved feature.

 

If your application is for personal use only, you can enable this feature by following the instructions here.

 

For non-personal use cases, contact us to request access. Include the client id of the application you registered at https://dev.fitbit.com and tell how the data will be used. Fitbit is very supportive of non-profit research and personal projects. Commercial and widely-distributed applications require additional review and are subject to additional requirements if approved.

 

I have asked for intraday time series access and received a response within a few days.. 

 

Hope this answers your question.. 

Best Answer
0 Votes