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

Cannot get HRV data through WebAPI

ANSWERED

I requested the form and got granted for getting intraday data.

 

But when I request the HRV intraday by date, I still get the response  "API client is not authorized by Fitbit to access the resource requested."

 

The heartrate scope is granted. And I can get the response "Heart Rate Intraday by Date".

 

[OK]

-H "accept: application/json" \
-H "authorization: Bearer $access_token"
 
[NG]
-H "accept: application/json" \
-H "authorization: Bearer $access_token"
 
Why cannot I get the HRV data through WebAPI?
Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

The client ID is set to "client".

 

But I changed it to "personal" and changed it to "client" again.

Then it works!

I don't know that it was the cause. But now I can use HRV WebAPI.

 

 I appreciate your advice. Thank you.

View best answer in original post

Best Answer
0 Votes
2 REPLIES 2

Hi @suzuki4 

 

Would you please check to see if your application type setting for this client ID is set to "personal"?   If it is, please change it to client or server.

 

Gordon

Gordon Crenshaw
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google
Best Answer

The client ID is set to "client".

 

But I changed it to "personal" and changed it to "client" again.

Then it works!

I don't know that it was the cause. But now I can use HRV WebAPI.

 

 I appreciate your advice. Thank you.

Best Answer
0 Votes