xcx
Home
其他文档
冯奎博客
GitHub
Home
其他文档
冯奎博客
GitHub
  • 简介
  • 微信
    • 微信
  • QQ
    • QQ
  • 百度
    • 百度
  • 字节跳动
    • 字节跳动
  • 钉钉
    • 钉钉
  • 支付宝
    • 支付宝
method说明参数返回值
userid获取userid$codeCollection
accessToken获取 access_tokenCollection
userInfo获取用户信息$useridCollection
asyncSend发送工作通知。。。Collection

完善配置

# 钉钉小程序配置
$dingtalkConfig = [
    'agentid'   => '', // agentid
    'appkey'    => '', // appkey
    'secret'    => '', // secret
    'robot_appkey'    => '', // robot_appkey
    'robot_secret'    => '', // robot_secret
];
$xcx = new \fengkui\Xcx\Wechat($dingtalkConfig); // 钉钉

获取userid

$code = '';
$xcx->userid($code);

获取 access_token

$xcx->accessToken();

获取用户信息

$userid = '';
$xcx->userInfo($userid);

发送工作通知

$userid = ''; // 用户openid
$data = []; // 发送数据
$path = 'pages/index/index';
$xcx->userid($userid, $data, $path);
Last Updated:
Contributors: kuifeng
Prev
字节跳动
Next
支付宝