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

How to add custom event/activity to fitbit server from face watch app

Hi, In my use case I want to send custom event/activity with some custom parameter to Fitbit server after clicking on button of watch face and same data should be retrieve from android app after authentication with Fitbit. The problem here I'm facing is to post the data to Fitbit server, I tried POST api https://api.fitbit.com/1/user/-/activities.json from companion but it throwing the authorisation error : {"errors":[{"errorType":"system","fieldName":"n/a","message":"Authorization Error: Invalid authorization token type"}],"success":false}. Am I doing something wrong? How can I get access token in companion? 

 

It will be helpful if  you let me know how can i send the custom activity/event data from Fitbit watch face on click of a button. Any alternative approach will be helpful to achieve the same use case. 

Best Answer
0 Votes
0 REPLIES 0