headlth planet からデータ収集するスクリプトです
- Python 3.8.2
$ python -m venv venv
$ source venv/bin/activate
or
$ source venv/bin/activate.fish
$ pip install -r requirements.txt
Health Planetでアカウントを登録後、連携アプリを作成。Client ID、Client secretを取得。 https://www.healthplanet.jp/applications.do
下記APIの仕様書を元に下記APIを使用し、アクセストークンを取得。
- /oauth/auth
- /oauth/token
Health Planet API 仕様書 | Health Planet ヘルスプラネット
$ cp .env.sample .env
$ direnv edit .
// HEALTH_ACCESS_TOKEN にアクセストークンを追加
$ direnv allow
$ python health_status.py
# output to dist dir