GET fitbit subscriber - ocariot/api-gateway GitHub Wiki
Description
Endpoint required for Fitbit verify subscriber.
When a subscriber is added, or when its URL is changed, Fitbit sends 2 GET requests to the subscriber endpoint, each with a "verify" query string parameter. One request has the subscriber verification code (which you can find on your app details page) as the "verify" query string parameter value, and expects the subscriber to respond with a 204. Another request has an intentionally invalid verification code, and expects the subscriber to respond with a 404.
For more information see the Fitbit documentation.
URL
Query Strings
Query strings are used as follows: there must be a question mark following the URL and providing the parameters for the desired operation.
-
verify (the subscriber code)
https://localhost/v1/fitbit/subscriber?verify=848a8s4das68d4ad4as86d4asdsad8asd
Curl example
curl -X GET "https://localhost/v1/fitbit/subscriber?verify=848a8s4das68d4ad4as86d4asdsad8asd" -H "accept: /"
Response body
-
204
The verify code sended is correct. There is no data to be returned -
404
The verify code sended is invalid. There is no data to be returned