How to get weight data from Google fitness api?
问题 Existing script for step count works perfectly and I can get the data from Google Fit // see step count example at https://developers.google.com/fit/scenarios/read-daily- step-total function getSteps() { var start = new Date(); start.setHours(0,0,0,0); start.setDate(start.getDate()-1); var end = new Date(); end.setHours(23,59,59,999); end.setDate(end.getDate()-1); var fitService = getFitService(); var request = { "aggregateBy": [{ "dataTypeName": "com.google.step_count.delta", "dataSourceId":