01-08-2022 02:47
01-08-2022 02:47
Some years ago I complained of being forced to enter whole numbers in the distance field when entering manual figures in the distance field (training - walking e.g.
I find this very annoying, and it should be a small issue to repair.
Some say it has to do with the language ro keyboard settings?
But how then can I change those for the better?
Nothing has changed since my first complaint.
CW
Android 11
01-12-2022 12:58
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
01-12-2022 12:58
Hi @Chywan
I tested the Create Activity Log endpoint and it does support inserting a decimal for distance. Here's an example I created
curl -X POST "https://api.fitbit.com/1/user/-/activities.json?activityId=90013&manualCalories=20&startTime=04%3A00...distance=2.5"
-H "accept: application/x-www-form-urlencoded"
-H "authorization: Bearer <access_token>" -d ""
{"activityLog":{"activityId":90013,"activityParentId":90013,"activityParentName":"Walk","calories":20,"description":"Walking less than 2 mph, strolling very slowly","distance":2.5,"duration":28000,"hasActiveZoneMinutes":false,"hasStartTime":true,"isFavorite":false,"lastModified":"2022-01-12T20:55:25.648Z","logId":<id>,"name":"Walk","startDate":"2022-01-12","startTime":"04:00","steps":1578}}
Please let us know if you have problems doing it yourself.
Gordon
Best Answer