07-15-2021 07:10
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

07-15-2021 07:10
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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.
