不从iHealth云(沙箱)获取任何测量数据(Don’t get any measuring data from iHealth cloud (sandbox))

我编写了一个使用iHealth api的应用程序。 iHealth的秤,血压监测器和类似设备将蓝牙和智能手机应用程序的数据发送到iHealth的互联网云。 因此,此设备的用户在iHealth互联网云中具有用户帐户。 在那里,他可以登录并查看他的数据。 我的应用程序使用iHealth api从此云获取数据。 设备的用户给予mi通过OAuth 2访问其数据的权利,并且在接收到访问数据之后,我要求具有给定客户端ID的用户的数据。

好吧,这就是问题所在。 结果,我获得了一个没有任何数据的测量数据的JSON-Object。 这意味着没有错误消息,一切似乎都很好,除了没有该用户的数据。 这里没有记录错误:sandbox.ihealthlabs.com/dev_documentation_ResponseFormatAndErrors.htm

Http状态也很好(200)。

我不使用任何可选限制,例如只询问一定时间的数据。

一个解释是用户仍然没有使用他的设备,因此云没有任何数据。 不幸的是,这是我无法影响的:我的应用程序仍然没有准备好,因此我只使用提供用于开发的沙箱云( http://sandbox.ihealthlabs.com )。

sandboxuser无法使用智能手机应用程序,因此我只能读取云中尚未存在的数据。 当然我没有数据就无法测试。 谁可以在不回收数据的情况下开发? 必须有一个错误。 也许是个愚蠢的错误。 我超过9天前询问了支持但仍然没有得到任何答案。

使用血压api(openApiBP)从云中获取JSON数据(XX部分缩写为id,token,...):

http://sandboxapi.ihealthlabs.com/openapiv2/user/d7XX..XX9f/bp.json/?client_id=a6XX..XXbe&client_secret=2bXX..XX3f&redirect_uri=http%3A%2F2Flocalhost%3A8082%2FTelemedicina%2Fdispositivos.html% 3Fregreso%3DiHealth&=的access_token&u8XX..XXyw SV = 6cXX..XXcf&SC = deXX..XXcf

答案(没有任何改变)只是:

{“BPDataList”:[],“BPUnit”:0,“CurrentRecordCount”:0,“NextPageUrl”:“”,“PageLength”:50,“PageNumber”:1,“PrevPageUrl”:“”,“RecordCount”: 0}

使用Api for Weight(OpenApiWeight)与OpenApiBP具有相同的问题。 我不止一次阅读过文档,并在网上搜索了解释。 如你所见,我问api并为开发目的得到这个可能正确但无用的答案。 任何想法? 我错过了什么?


更新:iHealth Lab tecnican回答了我。 沙箱中只是用户数据。 因此,我的询问方式和经过回答的答案是正确的。 这不是错误 。 要获取数据,必须为现实世界注册应用程序。 他没有解释如何测试沙箱的这种限制。

I write an application that uses the api of iHealth. Scales, blood pressure monitor, and devices like that by iHealth send there data with Bluetooth and smartphone apps to the internet cloud of iHealth. Therefore a user of this devices has a user account in the iHealth internet cloud. There he can login and see his data. My app uses the iHealth api to get the data from this cloud. The user of the devices gives mi the right to access his data by OAuth 2 and after receiving the access data I ask for the data of the user with the given client id.

Well, here comes the problem. As a result I get a JSON-Object of measuring data without any data. That means there is no error message, everything seems fine, except that there are no data of this user. It's no kind of error documented here: sandbox.ihealthlabs.com/dev_documentation_ResponseFormatAndErrors.htm

Http status is good too (200).

I don't use any optional restrictions like asking for data of only certain time.

An explication would be that the user still hasn't used his devices and the cloud therefore doesn't has any data. Unfortunately this is something I can't influence: My app is still not ready and therefore I only use the sandbox cloud offered for development (http://sandbox.ihealthlabs.com).

The sandboxuser can't use the smartphone apps and therefore I can only read the data that are yet there in the cloud. Of course I can't test without data. Who could develop without reciving data? There has to be an error. Maybe a rather silly error. I asked more than 9 days ago the support but still haven't got any answer.

Getting JSON data from the cloud with the api for blood pressure (openApiBP) (the XX-parts are abbreviated id, token, ...):

http://sandboxapi.ihealthlabs.com/openapiv2/user/d7XX..XX9f/bp.json/?client_id=a6XX..XXbe&client_secret=2bXX..XX3f&redirect_uri=http%3A%2F2Flocalhost%3A8082%2FTelemedicina%2Fdispositivos.html%3Fregreso%3DiHealth&access_token=u8XX..XXyw&sv=6cXX..XXcf&sc=deXX..XXcf

The answer to this (w/o any change) is just:

{"BPDataList":[], "BPUnit":0, "CurrentRecordCount":0, "NextPageUrl":"", "PageLength":50, "PageNumber":1, "PrevPageUrl":"", "RecordCount":0}

Using the Api for Weight (OpenApiWeight) has the same problem as the OpenApiBP. I have read the documentation more than once and searched for an explanation in the web. As you see I ask the api and get this maybe correct but useless answer for development purposes. Any idea? What do I miss?


Update: An iHealth Lab tecnican answered me. In the sandbox is just now user data. My way of asking and the recifed answer are therefore correct. It's not an error. To get data the application has to be registered for the real world. He didn't explain how to test with this limitation of the sandbox.

最满意答案

我让iHealth Lab api技术人员的答案不言而喻:

“沙箱不提供任何实际的用户数据。如果你想要实际的实时数据,你必须在developer.ihealthlabs.com上注册一个新的应用程序。”

如果这是我的问题的答案,为什么不回收任何数据意味着我真的没有可以回收的数据。 感谢所有试图帮助我的人,尤其是Scott Lawson。 我希望这个答案可以帮助别人。 几天前了解这一点可以节省我很多时间。

I let the the answer of the iHealth Lab api technician speak for itself:

"The sandbox does not provide any actual user data. If you want actual live data you will have to register a new application at developer.ihealthlabs.com."

If this is the answer to my question of why not reciving any data means there is really no data that I could recive. Thanks to all that tried to help me, especially Scott Lawson. I hope this answer will help others. Knowing this a few days ago would have saved me a lot of time.

不从iHealth云(沙箱)获取任何测量数据(Don’t get any measuring data from iHealth cloud (sandbox))

我编写了一个使用iHealth api的应用程序。 iHealth的秤,血压监测器和类似设备将蓝牙和智能手机应用程序的数据发送到iHealth的互联网云。 因此,此设备的用户在iHealth互联网云中具有用户帐户。 在那里,他可以登录并查看他的数据。 我的应用程序使用iHealth api从此云获取数据。 设备的用户给予mi通过OAuth 2访问其数据的权利,并且在接收到访问数据之后,我要求具有给定客户端ID的用户的数据。

好吧,这就是问题所在。 结果,我获得了一个没有任何数据的测量数据的JSON-Object。 这意味着没有错误消息,一切似乎都很好,除了没有该用户的数据。 这里没有记录错误:sandbox.ihealthlabs.com/dev_documentation_ResponseFormatAndErrors.htm

Http状态也很好(200)。

我不使用任何可选限制,例如只询问一定时间的数据。

一个解释是用户仍然没有使用他的设备,因此云没有任何数据。 不幸的是,这是我无法影响的:我的应用程序仍然没有准备好,因此我只使用提供用于开发的沙箱云( http://sandbox.ihealthlabs.com )。

sandboxuser无法使用智能手机应用程序,因此我只能读取云中尚未存在的数据。 当然我没有数据就无法测试。 谁可以在不回收数据的情况下开发? 必须有一个错误。 也许是个愚蠢的错误。 我超过9天前询问了支持但仍然没有得到任何答案。

使用血压api(openApiBP)从云中获取JSON数据(XX部分缩写为id,token,...):

http://sandboxapi.ihealthlabs.com/openapiv2/user/d7XX..XX9f/bp.json/?client_id=a6XX..XXbe&client_secret=2bXX..XX3f&redirect_uri=http%3A%2F2Flocalhost%3A8082%2FTelemedicina%2Fdispositivos.html% 3Fregreso%3DiHealth&=的access_token&u8XX..XXyw SV = 6cXX..XXcf&SC = deXX..XXcf

答案(没有任何改变)只是:

{“BPDataList”:[],“BPUnit”:0,“CurrentRecordCount”:0,“NextPageUrl”:“”,“PageLength”:50,“PageNumber”:1,“PrevPageUrl”:“”,“RecordCount”: 0}

使用Api for Weight(OpenApiWeight)与OpenApiBP具有相同的问题。 我不止一次阅读过文档,并在网上搜索了解释。 如你所见,我问api并为开发目的得到这个可能正确但无用的答案。 任何想法? 我错过了什么?


更新:iHealth Lab tecnican回答了我。 沙箱中只是用户数据。 因此,我的询问方式和经过回答的答案是正确的。 这不是错误 。 要获取数据,必须为现实世界注册应用程序。 他没有解释如何测试沙箱的这种限制。

I write an application that uses the api of iHealth. Scales, blood pressure monitor, and devices like that by iHealth send there data with Bluetooth and smartphone apps to the internet cloud of iHealth. Therefore a user of this devices has a user account in the iHealth internet cloud. There he can login and see his data. My app uses the iHealth api to get the data from this cloud. The user of the devices gives mi the right to access his data by OAuth 2 and after receiving the access data I ask for the data of the user with the given client id.

Well, here comes the problem. As a result I get a JSON-Object of measuring data without any data. That means there is no error message, everything seems fine, except that there are no data of this user. It's no kind of error documented here: sandbox.ihealthlabs.com/dev_documentation_ResponseFormatAndErrors.htm

Http status is good too (200).

I don't use any optional restrictions like asking for data of only certain time.

An explication would be that the user still hasn't used his devices and the cloud therefore doesn't has any data. Unfortunately this is something I can't influence: My app is still not ready and therefore I only use the sandbox cloud offered for development (http://sandbox.ihealthlabs.com).

The sandboxuser can't use the smartphone apps and therefore I can only read the data that are yet there in the cloud. Of course I can't test without data. Who could develop without reciving data? There has to be an error. Maybe a rather silly error. I asked more than 9 days ago the support but still haven't got any answer.

Getting JSON data from the cloud with the api for blood pressure (openApiBP) (the XX-parts are abbreviated id, token, ...):

http://sandboxapi.ihealthlabs.com/openapiv2/user/d7XX..XX9f/bp.json/?client_id=a6XX..XXbe&client_secret=2bXX..XX3f&redirect_uri=http%3A%2F2Flocalhost%3A8082%2FTelemedicina%2Fdispositivos.html%3Fregreso%3DiHealth&access_token=u8XX..XXyw&sv=6cXX..XXcf&sc=deXX..XXcf

The answer to this (w/o any change) is just:

{"BPDataList":[], "BPUnit":0, "CurrentRecordCount":0, "NextPageUrl":"", "PageLength":50, "PageNumber":1, "PrevPageUrl":"", "RecordCount":0}

Using the Api for Weight (OpenApiWeight) has the same problem as the OpenApiBP. I have read the documentation more than once and searched for an explanation in the web. As you see I ask the api and get this maybe correct but useless answer for development purposes. Any idea? What do I miss?


Update: An iHealth Lab tecnican answered me. In the sandbox is just now user data. My way of asking and the recifed answer are therefore correct. It's not an error. To get data the application has to be registered for the real world. He didn't explain how to test with this limitation of the sandbox.

最满意答案

我让iHealth Lab api技术人员的答案不言而喻:

“沙箱不提供任何实际的用户数据。如果你想要实际的实时数据,你必须在developer.ihealthlabs.com上注册一个新的应用程序。”

如果这是我的问题的答案,为什么不回收任何数据意味着我真的没有可以回收的数据。 感谢所有试图帮助我的人,尤其是Scott Lawson。 我希望这个答案可以帮助别人。 几天前了解这一点可以节省我很多时间。

I let the the answer of the iHealth Lab api technician speak for itself:

"The sandbox does not provide any actual user data. If you want actual live data you will have to register a new application at developer.ihealthlabs.com."

If this is the answer to my question of why not reciving any data means there is really no data that I could recive. Thanks to all that tried to help me, especially Scott Lawson. I hope this answer will help others. Knowing this a few days ago would have saved me a lot of time.