【发布时间】:2014-06-06 02:42:17
【问题描述】:
除了“从和至今”之外,我想进一步按时间细分来自Mixpanel export() API method 的事件信息(事件包含一个“时间”属性,表示为一个unix 时间戳);但是,例如,当我指定“where”参数时,我得到一个空响应(见下文)。
"where" 参数 = 'properties["time"] >= 1401642000'
我肯定有与此相符的活动。这应该工作吗?
没有“位置”参数:
args = {'from_date': '2014-06-01', 'api_key': 'REDACTED', 'sig': 'REDACTED', 'to_date': '2014-06-04', 'expire': 1402424767}
response = [我收到预期的事件]
'where' 参数 = 'properties["time"] >= 1401642000'
args = {'from_date': '2014-06-01', 'expire': 1402424767, 'sig': 'REDACTED', 'to_date': '2014-06-04', 'api_key': 'REDACTED ', 'where': 'properties["time"] >= 1401642000'}
response = [HTTP请求成功,但响应为空]
与上述相同,只是将时间值放在引号中:
'where' 参数 = 'properties["time"] >= "1401642000"'
args = {'from_date': '2014-06-01', 'expire': 1402424767, 'sig': 'REDACTED', 'to_date': '2014-06-04', 'api_key': 'REDACTED ', 'where': 'properties["time"] >= "1401642000"'}
response = [HTTP请求成功,但响应为空]
尝试将 properties["time"] 转换为数字:
'where' 参数 = 'number(properties["time"]) >= 1401642000'
args = {'from_date': '2014-06-01', 'expire': 1402424767, 'sig': 'REDACTED', 'to_date': '2014-06-04', 'api_key': 'REDACTED ', 'where': 'number(properties["time"]) >= 1401642000'}
response = [HTTP请求成功,但响应为空]
【问题讨论】:
标签: mixpanel