14 Star 26 Fork 13

mjxjn/WEIXIN_SEND

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
test.php 735 Bytes
一键复制 编辑 原始数据 按行查看 历史
mjxjn 提交于 2013-10-11 09:48 . 微信群发创建
<?php
require "config.php";
require "include/WeiXin.php";
$weiXin = new WeiXin($G_CONFIG['weiXin']);
$testFakeId = "30566715"; //用户1的fakeid
$testFakeId2 = "2593741120";//用户2的fakeid
// 发送消息
print_r($weiXin->send($testFakeId, "test"));
// 发送图片, 图片必须要先在公共平台中上传, 得到图片Id
print_r($weiXin->sendImage($testFakeId, "10000001"));
// 批量发送
print_r($weiXin->batSend(array($testFakeId, $testFakeId2), "test batSend"));
// 得到用户信息
print_r($weiXin->getUserInfo($testFakeId));
// 得到最新消息
print_r($weiXin->getLatestMsgs());
// 得到用户fakeid
print_r($weiXin->getFakeid(100)); //分页量
// 得到用户分组信息
print_r($weiXin->getGroups());
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/saga/WEIXIN_SEND.git
git@gitee.com:saga/WEIXIN_SEND.git
saga
WEIXIN_SEND
WEIXIN_SEND
master

搜索帮助

D67c1975 1850385 1daf7b77 1850385