tencentsdk/im
Composer 安装命令:
composer require tencentsdk/im
包简介
tencent im sdk
README 文档
README
腾讯云通信 php sdk
安装
composer require tencentsdk/im
使用
use TencentSDK\Im\Client as ImClient; $options = [ 'appId' => 'your app id', 'privateKey' => 'your private key path', 'adminer' => 'admin', // your admin account ]; $imClient = new ImClient($options['appId'], $options['privateKey'], $options['adminer']); // 添加好友 $imClient->execute('sns', 'friend_add', [ 'From_Account' => 'test_from_account', 'AddFriendItem' => [ [ 'To_Account' => 'test_to_account', 'AddSource' => 'AddSource_Type_test', ], ], ]); // 添加群群员 $imClient->execute('group_open_http_svc', 'add_group_member', [ 'GroupId' => 'group_id', 'MemberList' => [ [ 'Member_Account' => 'test_to_account', ], ], ]); // 示例仅供参考,以腾讯IM文档为准
统计信息
- 总下载量: 74
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-03-20