jumoshen / ding-bot
Send message to dingding`s group chat
Installs: 1 279
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >=5.3
- guzzlehttp/guzzle: ^6.3
Requires (Dev)
- guzzlehttp/guzzle: ^6.3
- phpunit/phpunit: ~4.0
This package is auto-updated.
Last update: 2024-05-04 19:17:01 UTC
README
Send message to dingding`s group chat
环境要求
- php >= 7.1.3
- laravel >= 5.5
安装
composer require jumoshen/ding-bot:^0.1
使用
<?php use DingBot\Services\DingBotService; use Psr\Http\Message\MessageInterface; #text文本 (new DingBotService('your access_token'))->text('这是个测试', [], function(MessageInterface $result){ # do your callback }); #markdown (new DingBotService(''))->markdown('- title', [], function(MessageInterface $result){ # do your callback });