POST fitbit subscriber - ocariot/api-gateway GitHub Wiki

Description

Endpoint used by Fitbit to notify the subscriber of updates to subscribed resources.

After receiving this notification, the notified feature is consulted in the Fitbit Rest API.

URL

POST https://localhost/v1/fitbit/subscriber

Request body

{
  "collectionType": "body",
  "date": "2019-08-28",
  "ownerId": "A1B2C3",
  "ownerType": "user",
  "subscriptionId": "BODY"
}

Curl example

curl -X POST "https://localhost/v1/fitbit/subscriber" -H "accept: /" -H "Content-Type: application/json" -d "{"collectionType":"body","date":"2019-08-28","ownerId":"A1B2C3","ownerType":"user","subscriptionId":"BODY"}"

Response body