当前位置: 首页 > 后端技术 > PHP

非官方即时通讯IM,支持腾讯IM、欢信IM、极光IM、融云IM、网易云信IM等

时间:2023-03-29 21:09:48 PHP

非官方即时通讯IM,支持腾讯IM、欢信IM、极光IM、融云IM、网易云信IM等安装composer需要whereof/easy-im请求日志才能打开\whereof\easyIm\Kernel\BaseClient::$request_log=true;case腾讯IM$config=['appId'=>'5978322198','identifier'=>'administrator','secretKey'=>'nfugb53xtlhyfq2kgiriganruyoagh93it1zwysmh2tmj5tnnmuqhd2og5ofktjt',];$im=whereof\easyIm\Factory::Tencent($config);//自定义请求(账号同步到云端)$params=['Identifier'=>'easyim','Nick'=>'easyim','FaceUrl'=>'https://github.com/whereof/easy-im',];$im->request->send('im_open_login_svc/account_import',$params);环信IM$config=['appKey'=>'','clientId'=>'','clientSecret'=>'','orgName'=>'','appName'=>'',];$im=whereof\easyIm\Factory::Huanxin($config);//自定义请求(账号同步到云端)$params=['username'=>'easyim','password'=>'123456','nickname'=>'easyim'];$im->request->send('post','users',$params);极光IM$config=['appKey'=>'','masterSecret'=>'',];$im=whereof\easyIm\Factory::Jiguang($config);//自定义请求(账号同步到云端)$params=[['username'=>'easyim','password'=>'123456',]];$im->request->send('post','v1/users/',$params);//IMRESTReportV2//获取消息$im->request->send('get','v2/messages?count=500&begin_time=2015-11-0210:10:10&end_time=2015-11-0210:10:12',[],true);RongyunIM$config=['appKey'=>'','appSecret'=>'',];$im=whereof\easyIm\Factory::RongCloud($config);//自定义请求(账号同步到云端)$params=['userId'=>'easyim','name'=>'easyim',];$im->request->send('user/getToken.json',$params);网易云信IM$config=['appKey'=>'','appSecret'=>'',];$im=whereof\easyIm\Factory::Yunxin($config);//自定义请求(账号同步到云)$params=['accid'=>'easyim','name'=>'easyim',];$im->request->send('nimserver/user/create.action',$params);支持厂商腾讯IM欢心IM极光IM融云IM网易云心IM加入我们如果您认可我们的开源项目,有兴趣为easy-im的开发贡献力量,真诚欢迎加入我们共同开发完善是否报错或PullRequest开发,即使是改正错别字,对我们的帮助也很大。关于我https://github.com/whereof/wh...麻省理工学院许可证