问题描述
{"access_token":"YWMtSrxYLDegEea1zCkPOWkBWQAAAVanof9J9Ysnrb6iA85Gv4ywyYmPmmkufT0","expires_in":5183999,"application":"e4e9f2e0-293d-11e6-9251-110907757b55"}request url = http://a1.easemob.com/mygroup/ ... ct%2B*+where+timestamp%3E1466506785736%26limit%3D1000%26cursor%3DMTQzNjgyOTEyMDpnR2tBQVFNQWdHa0FCZ0ZWVGVPWkdBQ0FkUUFRb1dVd0NqSUVFZWEyZHEySWEzN284QUNBZFFBUW9XVXdBRElFRWVhWUR0MEdUV0RzZ1FB, statusCode = 200.{ "action" : "get", "params" : { "ql=select * where timestamp>1466506785736&limit=1000&cursor=MTQzNjgyOTEyMDpnR2tBQVFNQWdHa0FCZ0ZWVGVPWkdBQ0FkUUFRb1dVd0NqSUVFZWEyZHEySWEzN284QUNBZFFBUW9XVXdBRElFRWVhWUR0MEdUV0RzZ1FB" : [ "" ] }, "path" : "/chatmessages", "uri" : "http://a1.easemob.com/mygroup/ ... ot%3B, 聊天内容-----------------------"timestamp" : 1466505858915, "duration" : 7, "cursor" : "MTQzNjgyOTEyMDpnR2tBQVFNQWdHa0FCZ0ZWVGVPWkdBQ0FkUUFRb1dVd0NqSUVFZWEyZHEySWEzN284QUNBZFFBUW9XVXdBRElFRWVhWUR0MEdUV0RzZ1FB", "count" : 10 返回的cursor 和上传的cursor 一样,返回的永远是同样的10条 另一个问题 token的时效是多久规则。。。
解决方案
limit写前面去,比如你参考下面这段chatmessages?limit=100&ql=select+*+where+timestamp>1432275600000×tamp<1432275900000
解决方案二:
导出聊天记录默认是10条,再次导出是加上返回的cursor,如果还是觉得不对,就留一下QQ,到时加你
解决方案三:
现在的问题是。。。。a1.easemob.com/mygroup/medicaltourism/chatmessages?, statusCode = 200. 我已经不给他传任何参数了 还是返回这十条。。。 三个参数全传也是十条 "ql=select * where timestamp>1466506785736&limit=1000&cursor=MTQzNjgyOTEyMDpnR2tBQVFNQWdHa0FCZ0ZWVGVPWkdBQ0FkUUFRb1dVd0NqSUVFZWEyZHEySWEzN284QUNBZFFBUW9XVXdBRElFRWVhWUR0MEdUV0RzZ1FB" : [ "" ]
解决方案四:
设置limit=XX,这个是设置返回条数的,默认是返回10条