Hi Chris,
On 01/06/2016 11:37 PM, Chris Schaefbauer wrote:
> This is an interesting issue you raise. The merged data sources (there
> is a merged data source for most measures) contain data, for a single
> type, that is processed and merged "from all data sources, including
> from 3rd parties" [Satinder Singh, Moderator for the Google Fit
> Developers community, 2014-10-30].
Ah, great. I wasn't aware such a data source exists. I could not find
any information about them.
> I just tested this again to make sure nothing has changed and I am able
> to create a new data source using the REST API (which had a dataSourceId
> = raw:com.google.heart_rate.bpm:947638375722), push data to that data
> source using the REST API, and then retrieve it using Shimmer pointed to
> the
> "derived:com.google.heart_rate.bpm:com.google.android.gms:merge_heart_rate_bpm"
> data source.
Good. That means I'm doing something wrong when uploading the samples :)
I tried to follow the sample described on
https://developers.google.com/fit/rest/v1/workout
but using the Java library for fitness.
It seems to run without errors, but it just doesn't return any data.
You can find the code here:
https://github.com/MEDvision/googlefit
I checked the URLs and data send by the Google fit library and they all
seem to be correct.
What are you using to add data using the REST API? Perhaps I can use it
to figure out what I'm doing wrong.
> My concern is that,
> in my experience, many data sources contain duplicate data, which might
> be why the merge data sources exist.
Yes, I agree the merge data sources are the best solution for this.
Thanks,
Ralph van Etten
--
*MedVision BV*