11-12-2015 09:55
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

11-12-2015 09:55
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Does the subscription API/webhooks only work with activity data collected from a Fitbit hardware device? Is there any plan to provide subscription updates when the user hsa manually entered an activity? I don't have a fitbit device but would like to test my endpoints. It would also be good for a user experience standpoint for 3rd party applications to behave the same way regardless if the activity is collected from hardware or web form.
Thanks,
Jeff
Answered! Go to the Best Answer.

- Labels:
-
Subscriptions API
Accepted Solutions
11-12-2015 16:17
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

SunsetRunner
11-12-2015 16:17
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
@jkingyens wrote:
In addition to configuring the subscription in the dev.fitbit.com dashboard, must I also send an API request as documented under "adding a subscription"? I assumed the configuration in the dashboard did this for me but this looks like it might be different.
Thanks,
Jeff
Yes, you need to individually add a subscription for each user that authorizes your application.

11-12-2015 11:59
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

SunsetRunner
11-12-2015 11:59
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
@jkingyens wrote:
Does the subscription API/webhooks only work with activity data collected from a Fitbit hardware device? Is there any plan to provide subscription updates when the user hsa manually entered an activity? I don't have a fitbit device but would like to test my endpoints. It would also be good for a user experience standpoint for 3rd party applications to behave the same way regardless if the activity is collected from hardware or web form.
Thanks,
Jeff
Yes it does! If you manually log an activity, sleep log, etc, it will generate a notification to your endpoint.

11-12-2015 13:57
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

11-12-2015 13:57
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Oh thats great to know! However, I am not seeing activity on the webhooks. Are there any tools available to help debug this case? I'm using a product called ngrok.io to provide a public proxy to my localhost. Webhooks for other services like Stripe are working fine. I've confirmed the url matches the settings
Thanks,
Jeff

11-12-2015 14:01
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

11-12-2015 14:01
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
It says "This subscription endpoint had not got any messages yet." inside the subscriber detail. I've also verified that the account I'm adding activity for is connected to the application I'm developoing. I'm NOT using https/ssl for this test. I'm using activity scope only. Do i need any other scopes here?
Thanks
Jeff

11-12-2015 14:03 - edited 11-12-2015 14:03
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

SunsetRunner
11-12-2015 14:03 - edited 11-12-2015 14:03
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Did you configure and enable your subscription endpoint on dev.fitbit.com? Did you add a subscription for the user? ( https://dev.fitbit.com/docs/subscriptions/#adding-a-subscription )

11-12-2015 15:34
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

11-12-2015 15:34
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I've added the subscription endpoing in dev.fitbit.com. How do i add a subscription for the user? The user has gone through the oauth 2 flow for server type application. Is there anything else I need to do or scopes I need to set to enable subscriptions?

11-12-2015 15:40
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

11-12-2015 15:40
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
In addition to configuring the subscription in the dev.fitbit.com dashboard, must I also send an API request as documented under "adding a subscription"? I assumed the configuration in the dashboard did this for me but this looks like it might be different.
Thanks,
Jeff

11-12-2015 16:17
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

SunsetRunner
11-12-2015 16:17
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
@jkingyens wrote:
In addition to configuring the subscription in the dev.fitbit.com dashboard, must I also send an API request as documented under "adding a subscription"? I assumed the configuration in the dashboard did this for me but this looks like it might be different.
Thanks,
Jeff
Yes, you need to individually add a subscription for each user that authorizes your application.

11-12-2015 17:00
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

11-12-2015 17:00
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Great, thank you. I've added the subscriptions and I'm receiving webhooks now. Thanks for your help!

