腾讯即时通讯Im方法封装,调用.rar

上传者: fb_fb | 上传时间: 2022-04-14 11:18:05 | 文件大小: 21KB | 文件类型: RAR
//创建群聊 public function startLive() { $store_user_id = 111; // 创建直播间 //创建 Im群聊 $tenIm = new TenImService(); $params = [ "Owner_Account" => '', "Type" => "AVChatRoom", "Name" => "room_" . $store_user_id,//群名字 "GroupId" => "room_" . $store_user_id, // 用户自定义群组 ID(选填) ]; $serverName = 'group_open_http_svc'; $command = 'create_group'; $Imdata = $tenIm->group($params, $serverName, $command); return $Imdata; } //解散群 public function endLive() { $store_user_id = 111; //解散群 $params = [ "GroupId" => "room_" . $store_user_id ]; $serverName = 'group_open_http_svc'; $command = 'destroy_group'; $tenIm = new TenImService(); $Imdata = $tenIm->group($params, $serverName, $command); return $Imdata; }

文件下载

资源详情

[{"title":"( 21 个子文件 21KB ) 腾讯即时通讯Im方法封装,调用.rar","children":[{"title":"腾讯Im封装","children":[{"title":"service","children":[{"title":"TenImService.php <span style='color:#111;'> 3.26KB </span>","children":null,"spread":false}],"spread":true},{"title":"tencent","children":[{"title":"tls-sig-api-v2","children":[{"title":"src","children":[{"title":"TLSSigAPIv2.php <span style='color:#111;'> 8.62KB </span>","children":null,"spread":false}],"spread":true},{"title":"LICENSE <span style='color:#111;'> 1.06KB </span>","children":null,"spread":false},{"title":"test","children":[{"title":"test.php <span style='color:#111;'> 1.22KB </span>","children":null,"spread":false}],"spread":true},{"title":"README.md <span style='color:#111;'> 733B </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 7B </span>","children":null,"spread":false},{"title":"composer.json <span style='color:#111;'> 590B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"controller","children":[{"title":"Im.php <span style='color:#111;'> 29.85KB </span>","children":null,"spread":false}],"spread":true},{"title":"config","children":[{"title":"config.php <span style='color:#111;'> 9.30KB </span>","children":null,"spread":false}],"spread":true},{"title":"实例方法","children":[{"title":"test.php <span style='color:#111;'> 2.19KB </span>","children":null,"spread":false}],"spread":true},{"title":"hedeqiang","children":[{"title":"ten-im","children":[{"title":"src","children":[{"title":"Config.php <span style='color:#111;'> 4.07KB </span>","children":null,"spread":false},{"title":"IM.php <span style='color:#111;'> 2.96KB </span>","children":null,"spread":false},{"title":"Traits","children":[{"title":"HasHttpRequest.php <span style='color:#111;'> 3.34KB </span>","children":null,"spread":false}],"spread":true},{"title":".gitkeep <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"Exceptions","children":[{"title":"HttpException.php <span style='color:#111;'> 315B </span>","children":null,"spread":false},{"title":"InvalidArgumentException.php <span style='color:#111;'> 326B </span>","children":null,"spread":false},{"title":"Exception.php <span style='color:#111;'> 312B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"LICENSE <span style='color:#111;'> 1.06KB </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 3.62KB </span>","children":null,"spread":false},{"title":".editorconfig <span style='color:#111;'> 356B </span>","children":null,"spread":false},{"title":"composer.json <span style='color:#111;'> 557B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明