注册

给用户添加好友失败

**400 Bad Request**Your browser sent a request that this server could not understand. Sorry for the inconvenience.
Please report this message and include the following information to us.
Thank you very much!
URL:https://a1.easemob.com/hadi/hadistar/users/iloveCS/contacts/users/iloveCF
Server:ebs-ali-beijing-web1
Date:2015/06/05 15:27:45


这俩用户都已经创建成功 ,用get方法都能获取到,尝试添加好友失败..是哪里出了问题 求指导....
已邀请:

lizg - ……

怎么添加的好友,请求体贴下
$url = HUANXIN_URL . "users/" . $owner_username . "/contacts/users/" . $friend_username;
$header = array($this->getTokenAction ());
$result = $this->_curl_request ( $url, '', $header );
代码部分就这些 getoken和curl请求都是用的官方的demo

lizg - ……

你再看看官网示例,我刚刚试了没有问题啊

要回复问题请先登录注册