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

SPO2 API

ANSWERED

Hi All, just testing out the spo2 API and I cant connect by my normal means. All other api's still work however the spo2 API gives me this error ...

 

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.

 

I have authorised it with the new scope and even created a separate app to validate it's not acceptance of new T&Cs etc.

 

Any ideas?

 

Thanks!!

 

Like I said, all previous api's work, just getting an issue on spo2

Best Answer
1 BEST ANSWER

Accepted Solutions

Fixed, for some reason it just started working in the evening!

View best answer in original post

Best Answer
0 Votes
6 REPLIES 6

Hi All, just testing out the spo2 API and I cant connect by my normal means. All other api's still work however the spo2 API gives me this error ...

 

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.

 

I have authorised it with the new scope and even created a separate app to validate it's not acceptance of new T&Cs etc.

 

Any ideas?

 

Thanks!!

 

Like I said, all previous api's work, just getting an issue on spo2

Best Answer

Fixed, for some reason it just started working in the evening!

Best Answer
0 Votes

Could you please tell me what is the new scope to get sp02 data;

 

When I want to get the authorise it but it return error:

Developer information: invalid_scope - Invalid scope string : spO2

Developer information: invalid_scope - Invalid scope string : sp02

 

Should I creating a new Fitbit Developer Account again?

Best Answer
0 Votes

Hi, I have same issue when fetch the breathing rate and SpO2.  

could you please advise what is the scope for spo2 and breathing rate? 

Best Answer
0 Votes

Hi @Caseylol@Yiuman 
I am using https://github.com/orcasgit/python-fitbit/blob/master/fitbit/api.py to do the authorization process.
Add respiratory_rate and oxygen_saturation to session.scope in def authorize_token_url. Revoke access to your app, do authorization, mark 'All' and now you should be able to request SpO2/BR data.

Best Answer
0 Votes

Hi, oxygen_saturation should be it SPO2 and respiratory_rate for Breathing Rate

Best Answer
0 Votes