11-12-2015 09:55
11-12-2015 09:55
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.
11-12-2015 16:17
11-12-2015 16:17
@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
11-12-2015 11:59
@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
11-12-2015 13:57
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
11-12-2015 14:01
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
11-12-2015 14:03 - edited 11-12-2015 14:03
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
11-12-2015 15:34
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
11-12-2015 15:40
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
11-12-2015 16:17
@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
11-12-2015 17:00
Great, thank you. I've added the subscriptions and I'm receiving webhooks now. Thanks for your help!