关于php调用环信聊天记录问题
报错“array(5) { ["error"]=> string(16) "illegal_argument" ["timestamp"]=> int(1516861479578) ["duration"]=> int(0) ["exception"]=> string(34) "java.lang.IllegalArgumentException" ["error_description"]=> string(41) "This chatmessage request is not supported" }”:
php相关代码如下
public function chatRecord() {
$ql= "select+*+where+timestamp>1435536480000"; if(!empty($ql)){ $url=$this->url.'/chatmessages?ql='.$ql; }else{ $url=$this->url.'/chatmessages'; } $header=array($this->getToken()); // var_dump($header);die; $result=$this->postCurl($url,'',$header,"GET"); var_dump($result) ;
}
哪里有问题呀ql参数拼接规则是什么?url路径规则呢?
php相关代码如下
public function chatRecord() {
$ql= "select+*+where+timestamp>1435536480000"; if(!empty($ql)){ $url=$this->url.'/chatmessages?ql='.$ql; }else{ $url=$this->url.'/chatmessages'; } $header=array($this->getToken()); // var_dump($header);die; $result=$this->postCurl($url,'',$header,"GET"); var_dump($result) ;
}
哪里有问题呀ql参数拼接规则是什么?url路径规则呢?
没有找到相关结果
已邀请:
0 个回复