Request HealthKit data via REST API

Is it possible to get data from Healthkit in the same way as you would request a regular API (with user consent) for storage in my webapp?

Something like: healthkit.com/api/v1/user/GetWeight

If so, where can I find a list of available methods? If not, are there any workarounds?

+8
source share
3 answers

You will need to build:

  • your own REST API service for storing and retrieving the necessary data;
  • An iOS app that accesses data on a device using the HealthKit SDK and transfers it to its API.

No step is trivial. Good luck

+8
source

If it's a REST / json API, you want it not to be available, and I think it will never be.

HealthKit is a standard API available in the IOS8 SDK , accessible from an application running on iDevice and written in objective-c / swift.

+4
source

An alternative would be to install Google Fit on the iPhone, which will connect to the first-aid kit and synchronize this data with the cloud, which can then be requested through the Fit REST API. https://developers.google.com/fit/rest/

0
source

Source: https://habr.com/ru/post/986359/


All Articles