Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Subscriptions to manually entered activity

ANSWERED

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

 

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

@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.

View best answer in original post

Best Answer
0 Votes
8 REPLIES 8

@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.

Best Answer
0 Votes

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

 

Best Answer
0 Votes

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

 

Best Answer
0 Votes

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 )

Best Answer
0 Votes

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?

Best Answer
0 Votes

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

 

Best Answer
0 Votes

@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.

Best Answer
0 Votes

Great, thank you. I've added the subscriptions and I'm receiving webhooks now. Thanks for your help!

Best Answer
0 Votes