我试图从STARTDATE至一个结束日期得到会议,但每一次我尝试总是返回一个空的记录谷歌FIT REST API获取会话
HTTP/1.1 200 OK
Content-length: 3
X-xss-protection: 1; mode=block
Content-location: https://www.googleapis.com/fitness/v1/users/me/sessions?startTime=2015-11-20T00:00:00.00Z&endTime=2015-11-30T23:59:59.99Z
X-content-type-options: nosniff
Expires: Fri, 01 Jan 1990 00:00:00 GMT
Vary: Origin,X-Origin
Server: GSE
Etag: ""
Pragma: no-cache
Cache-control: no-cache, no-store, max-age=0, must-revalidate
Date: Mon, 30 Nov 2015 16:49:52 GMT
X-frame-options: SAMEORIGIN
Content-type: application/json; charset=UTF-8
{}
什么是错的?
我有数据在该范围内,并且例如,如果我执行数据集它返回数据(https://www.googleapis.com/fitness/v1/users/me/dataSources/derived:com.google.step_count.delta:com.google.android.gms:estimated_steps/datasets/XXXXXXX000000000000-XXXXXX000000000000)
后巫术!我有同样的问题,你有没有发现是什么原因造成的? –
@Tom Danvers,从我的搜索列表中是空的,因为这仅适用于应用程序插入的会话,而不适用于Google。 (我没有100%安全) – Luis