I am trying to use the Google Health API with a REST API. I am aware there 
is an API available for Android but I am trying to port that behavior to a 
back end.

I am playing around in the Oauth playground; I am trying to get a 
aggregated query. I've tried many things but none of them return anything 
(only get errors) There is no example featured on the google website 
itself. Anyone has experience with this API?

If I just could get a working aggregate example I would work from there.

Here is my request to 
https://www.googleapis.com/fitness/v1/users/me/dataset:aggregate:

        {
      "startTimeMillis": 1451647796000,
      "endTimeMillis": 1458127796000,
      "aggregateBy": [
        {
          "dataTypeName": "com.google.height"
        }
      ],"bucketByTime": {
        "period": {
          "type": "day",
          "value": 1,
          "timeZoneId": "org.joda.timezone.DateTimeZone"
        }
      }
    }


Response: 

    {
      "error": {
        "code": 400, 
        "message": "Bad Request", 
        "errors": [
          {
            "domain": "global", 
            "message": "Bad Request", 
            "reason": "invalidArgument"
          }
        ]
      }
    }

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/84e951cc-d656-4f0f-9cb4-c5bb084af98d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to