def get_device_statistics(self, begin_date, end_date, device_id=None,<EOL>uuid=None, major=None, minor=None):
data = {<EOL>'<STR_LIT>': {<EOL>'<STR_LIT>': device_id,<EOL>'<STR_LIT>': uuid,<EOL>'<STR_LIT>': major,<EOL>'<STR_LIT>': minor<EOL>},<EOL>'<STR_LIT>': self._to_timestamp(begin_date),<EOL>'<STR_LIT>': self._to_timestamp(end_date)<EOL>}<EOL>res = self._post(<EOL>'<STR_LIT>',<EOL>data=data,<EOL>result_processor=lambda x: x['<STR_LIT:data>']<EOL>)<EOL>return res<EOL>
以设备为维度的数据统计接口
http://mp.weixin.qq.com/wiki/0/8a24bcacad40fe7ee98d1573cb8a6764.html

:param begin_date: 起始时间，最长时间跨度为30天
:param end_date: 结束时间，最长时间跨度为30天
:param device_id: 设备编号，若填了UUID、major、minor，则可不填设备编号，若二者都填，则以设备编号为优先
:param uuid: UUID
:param major: major
:param minor: minor