暂时遇上两个接口功能,找半天才发现没有接口,就提交了PR,但是最后没合并,overtrue貌似自己加上了,应该是版本太老不维护了,也算是添砖加瓦了哈哈哈,得空的时候完善一下文档,版本easywechat – V4.x
企业发表内容到客户朋友圈
$msg = [ "text" => [ "content" => "文本消息内容" ], "attachments" => [ [ "msgtype" => "image", "image" => [ "media_id" => "MEDIA_ID" ] ], [ "msgtype" => "video", "video" => [ "media_id" => "MEDIA_ID" ] ], [ "msgtype" => "link", "link" => [ "title" => "消息标题", "url" => "https://example.link.com/path", "media_id" => "MEDIA_ID" ] ] ], "visible_range" => [ "sender_list" => [ "user_list" => ["zhangshan", "lisi"], "department_list" => [2, 3] ], "external_contact_list" => [ "tag_list" => ["etXXXXXXXXXX", "etYYYYYYYYYY"] ] ] ]; $app->external_contact_message->moments($msg);
上传附件资源
$app->media->uploadAttachmentResources($path, $mediaType, $attachmentType);
以上~