承接 dishcheng/robot-notice 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

dishcheng/robot-notice

Composer 安装命令:

composer require dishcheng/robot-notice

包简介

README 文档

README

钉钉机器人

$client=new \DishCheng\RobotNotice\RobotNotice();

        $client->setDingAccessToken('xxxxxxxxxxxxxxxxxxxxx');


        $res=$client->ding->notice(new DingLinkParams('sss', 'aaa', 'https://www.baidu.com'))->postRequest();
        $res=$client->ding->notice(new DingTextParams('sss'))->postRequest();
        $res=$client->ding->notice(new DingFeedCardParams([
            [
                "title"=>"时代的火车向前开1",
                "messageURL"=>"https://www.dingtalk.com/",
                "picURL"=>"https://img.alicdn.com/tfs/TB1NwmBEL9TBuNjy1zbXXXpepXa-2400-1218.png",
            ],
            [
                "title"=>"时代的火车向前开2",
                "messageURL"=>"https://www.dingtalk.com/",
                "picURL"=>"https://img.alicdn.com/tfs/TB1NwmBEL9TBuNjy1zbXXXpepXa-2400-1218.png",
            ]
        ]))->postRequest();
//
        $res=$client->ding->notice(new DingSingleActionCardParams('title', 'text', 'singleTitle', 'singleUrl'))->postRequest();
        $res=$client->ding->notice(new DingMultiActionCardParams('title', 'text', [
            [
                "title"=>"内容不错",
                "actionURL"=>"https://www.dingtalk.com/"
            ],
            [
                "title"=>"都是渣渣",
                "actionURL"=>"https://www.dingtalk.com/"
            ]
        ]))->postRequest();
        $res=$client->ding->notice(new DingMarkDownParams('杭州天气markdown', '#### 杭州天气 ![](http://name.com/pic.jpg)'))->postRequest();
        dd($res);

企业微信机器人

        $client=new \DishCheng\RobotNotice\RobotNotice();

        $client->setQYWechatKey('xxxxxxxxxxxxx');


//        $res=$client->wechat->notice(new QYWechatTextParams('Test'))->postRequest();
//        $res=$client->wechat->notice(new QYWechatNewsParams(
//            [[
//                "title"=>"中秋节礼品领取",
//                "description"=>"今年中秋节公司有豪礼相送",
//                "url"=>"www.qq.com",
//                "picurl"=>"http://res.mail.qq.com/node/ww/wwopenmng/images/independent/doc/test_pic_msg1.png"
//            ],
//                [
//                    "title"=>"中秋节礼品领取",
//                    "description"=>"今年中秋节公司有豪礼相送",
//                    "url"=>"www.baidu.com",
//                    "picurl"=>"http://res.mail.qq.com/node/ww/wwopenmng/images/independent/doc/test_pic_msg1.png"
//                ]
//            ]
//        ))->postRequest();
        $res=$client->QYWechat->notice(new QYWechatMarkDownParams('实时新增用户反馈<font color=\"warning\">132例</font>,请相关同事注意。\n
         >类型:<font color=\"comment\">用户反馈</font>
         >普通用户反馈:<font color=\"comment\">117例</font>
         >VIP用户反馈:<font color=\"comment\">15例</font>'))->postRequest();
        dd($res);

统计信息

  • 总下载量: 4
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-04-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固