Skip to content

POST fitbit subscriber

JeffMedeiros edited this page Nov 28, 2019 · 1 revision

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:5001/v1/fitbit/subscriber

Request body

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

Curl example

curl -X POST "https://localhost:5001/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

  • 200 Operation performed successfully. There is no data to be returned