Posting Steps

Once you have your access_token, you may start adding user data to Cardiogram in order to generate Risk Scores

Add step count data to user

POST https://cardiogr.am/heart/oauth/users/:userId/steps

The steps endpoint helps store user step count

Path Parameters

Name
Type
Description

userId

string

/oauth/users/1/steps

Headers

Name
Type
Description

Authentication

string

Bearer <access_token>

Request Body

Name
Type
Description

Steps

object

{ steps: <Array>[ { start: <Timestamp> end: <Timestamp> value: <Float> } ] } Timestamps are UTC time in seconds

{ "success": true }

Code Sample:

curl --location --request POST "https://cardiogr.am/heart/oauth/users/1/steps" \
  --header "Content-Type: application/json" \
  --data "{ \"steps\": [{ \"start\": 1546025622, \"end\": 1546025820, \"value\": 105 }] }"

Last updated

Was this helpful?