09-06-2022 10:51
09-06-2022 10:51
Answered! Go to the Best Answer.
09-12-2022 09:16
09-12-2022 09:16
Hi @Carebit
Thank you for providing the information. Before you create subscriptions, you need to have a subscriber configured for your application. When you create a subscription, you link it to a specific subscriber which receives the notifications.
See https://dev.fitbit.com/build/reference/web-api/developer-guide/using-subscriptions/#Subscribers
Gordon
09-07-2022 11:21
09-07-2022 11:21
Hi @Carebit
Is there an error message that accompanies the 400 Bad Request error? 400 is a generic error and the message will provide more information to the problem.
Gordon
09-08-2022 08:05 - edited 09-08-2022 09:15
09-08-2022 08:05 - edited 09-08-2022 09:15
Unfortunately it only returns 400 bad request from what I can tell. It made me think something was wrong in my request but everything seems to be in order so I am lost on how to move forward and get a subscription ID to return. We are testing on a user that is a brand new account with no Fitbit linked to them currently. Could that be the problem?
So far we get a good response from Fitbit to generate tokens and a user_id for the Fitbit user. When I plug in the access token and user_id received from Fitbit that I verified are the same ones that were given, it just returns a 400 Bad Request.
09-08-2022 11:11
09-08-2022 11:11
I will send you a private message to collect some information from you. Hopefully, this will help me figure out the problem.
Best,
Gordon
09-12-2022 09:16
09-12-2022 09:16
Hi @Carebit
Thank you for providing the information. Before you create subscriptions, you need to have a subscriber configured for your application. When you create a subscription, you link it to a specific subscriber which receives the notifications.
See https://dev.fitbit.com/build/reference/web-api/developer-guide/using-subscriptions/#Subscribers
Gordon