钉钉发送工作通知消息
时间:2020-08-11 09:16:10
收藏:0
阅读:209
//发送工作通知消息 public function asyncsend(){ $config=config(‘ding‘); $app = new Application($config); $params=[ ‘agent_id‘=>‘849101807‘, ‘userid_list‘=>‘311410555921006538‘, ‘msg‘=>json_encode( [ ‘msgtype‘=>‘text‘, ‘text‘=>[ ‘content‘=>‘哇哈哈‘ ] ] ) ]; $res=$app->conversation->sendCorporationMessage($params); dump($res); }
评论(0)