示例#1
0
function set_usernick($user, $nickname)
{
    include_once '/home/wwwroot/default/zaina/lib/huanxin/Easemob.class.php';
    $option = array('client_id' => '*****************************', 'client_secret' => '*****************************', 'org_name' => '*****************************', 'app_name' => '*****************************');
    $easemob = new Easemob($option);
    $res = $easemob->set_usernick($user, $nickname);
    //$res = $easemob->Send_file('kefu',$us,'hi');
    return $res;
}