f-oris/easy-smartprogram
Composer 安装命令:
composer require f-oris/easy-smartprogram
包简介
百度智能小程序SDK
README 文档
README
百度智能小程序SDK,参照easy-wechat实现
功能
- 小程序登录
- 小程序授权信息解密
- 小程序模板消息管理,发送模板消息
- swan_id校验组件
- 信息流资源
- 获取unionid
安装
composer require f-oris/easy-smartprogram
基本使用
参考easy-wechat使用文档,因为是仿着做的,所以小程序各组件提供的方法,含义,用法基本上和easy-wechat一致
获取unionid
// 配置好config,获取code... $app = new Application($config); $session = $app->auth->session($code); $uionidData = $app->auth->getUnionid($session['openid']); // {"unionid": "St6PVMkgMDeh92Uq2EWfx6H"}
信息资源流
// 注意:此功能尚未在实际产品上应用验证,慎用
// 配置好config ...
$app = new Application($config);
// Resource操作,传入参数见官方文档说明
$app->resource->submit($data);
$app->resource->delete($path);
// Sitemap操作,传入参数见官方文档说明
$app->site_map->submit($url, $desc, $type, $frequency);
$app->site_map->delete($url);
License
MIT License
Copyright (c) 2019-present F.oris us@f-oris.me
统计信息
- 总下载量: 2.01k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-06-12