I was able to get the Oauth2 access token for the Blood Pressure resource, but can’t get any data from the BP endpoint. When I try to get data using that access token, I get the error message shown below.
BackValue:
""
Client_Para: null
Error: "SN_or_SV_is_not_authorized"
ErrorCode: 3
ErrorDescription: "Sc or sv is unauthorized"
When calling the resource, I used the example at https://developer.ihealthlabs.com/dev_documentation_RequestfordataofBloodPressure.htm
GET https://api.ihealthlabs.com:8443/openapiv2/user/05dffbe0dd*****/bp.json/
?client_id=ddb9cbc759*****
&client_secret=4738f9d00e*****
&redirect_uri=http://127.0.0.1:1880/oa
&access_token=xpoBt0ThQQ*****
&page_index=1
&sc=d63493704c*****
&sv=113cb40956*****
I modified the above parameters to use my app values (which were emailed to me from iHealth after I registered my app). For the redirect_uri, I used my localhost redirect page (http://127.0.0.1:1880/oa) which is the same as what I included when I registered the app.
Do I need to set a header with a bearer token, or is there a different problem?
I emailed iHealth Support four days ago, but got an auto-response that they are very busy. Their phone support says to email them. So if anyone in this forum has suggestions, I'd be glad to hear from you!
Thanks
-Thor