10-29-2019 06:06
10-29-2019 06:06
Hi,
We’re using the Fitbit Web API to retrieve information on users’ weights in a native app. This all works fine, but we would like to be able to establish the exact source of the data . Specifically, we’d like to be able to differentiate between weight logs which were acquired:
Fitbit’s own client app seems to be able to do this. Specifically, if I add a manual weight log in the client app, the app correctly displays the source as ‘MANUAL’. However, when the same weight log is retrieved via the Get Weight Logs API, the returned JSON payload doesn’t seem to make mention of this. Instead, the response’s source’ is marked only as ‘API’. The docs at https://dev.fitbit.com/build/reference/web-api/body/#weight seems to suggest that if the log was recorded via the Aria scales, the source would be ‘Aria’ although I’ve not had the opportunity to test this yet. I did also find a reference at https://community.fitbit.com/t5/Web-API-Development/Weight-API-source-parameter/td-p/1984169 to there being a source of ‘Web’ for manually/web entered data, but I cannot see this is being used by Fitbit’s own app.
How does the Fitbit client app distinguish between manually added and API-added weight logs? Is it exposed in a public API elsewhere? I’ve looked through the docs and may have missed it.
Many thanks in advance,
10-29-2019 09:59
10-29-2019 09:59
Hi @devhops,
The mobile application doesn't distinguish between manually added and API-added weight logs. For both scenarios, the mobile application will state MANUAL under the date.
Gordon
10-29-2019 11:14
10-29-2019 11:14
Hi Gordon,
Really appreciate the quick response. Maybe I've misunderstood something but that doesn't tally with what I'm seeing. The attached mobile app screenshot taken earlier today illustrates this. The lower (earlier) data point was added via the Fitbit API using a third party set of scales/app manufactured by Renpho, with authorisation to interact with my account. The higher (later) data was added manually within the Fitbit app...so the app does seem to be making a distinction, unless it's something peculiar about the way Renpho are using the API?
Either way, is there any way we can establish the actual source? Presumably there is for Aria scales?
Many thanks again,
11-04-2019 00:44
11-04-2019 00:44
Any thoughts on this at all? I still see the behaviour I mentioned in my last post where the Fitbit mobile app seems to know if weight logs are entered manually. Is there any way of distinguishing whether a weight log was added manually, via an API or via the Aria scales? (Sadly, I don't yet have a set of these to test with).
Many thanks.
11-04-2019 10:20
11-04-2019 10:20
Hi @devhops
When I tested manually entering the data through the Fitbit.com dashboard and adding data via the Web API "Log Weight" endpoint, both entries were displayed as MANUAL, similarly to the picture you posted.
As I said before, the mobile application doesn't distinguish between manually added and API-added weight logs. The only way I know to determine the source of weight data is through the Get Weight Log endpoint. However, I see manually entering the weight through the Fitbit.com web site will display the source to be "API"