auth = new Auth("appKey", "Client ID", "ClientSecret"); // 设置 Rest Api 域名 // $this->auth->setApiUri('http://a1-hsb.easemob.com'); $this->user = new User($this->auth); $this->contact = new Contact($this->auth); $this->block = new Block($this->auth); $this->message = new Message($this->auth); $this->metadata = new UserMetadata($this->auth); $this->push = new Push($this->auth); $this->attachment = new Attachment($this->auth); $this->group = new Group($this->auth); $this->room = new Room($this->auth); } }