EasyWechat自增新功能:企业发表内容到客户朋友圈,上传附件资源

暂时遇上两个接口功能,找半天才发现没有接口,就提交了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);

以上~

 

 

本文为 今天也想见到你 博客文章,转载无需和我联系,但请注明来自 今天也想见到你 博客 0925.wang
暂无评论

发送评论 编辑评论


				
|´・ω・)ノ
ヾ(≧∇≦*)ゝ
(☆ω☆)
(╯‵□′)╯︵┴─┴
 ̄﹃ ̄
(/ω\)
∠( ᐛ 」∠)_
(๑•̀ㅁ•́ฅ)
→_→
୧(๑•̀⌄•́๑)૭
٩(ˊᗜˋ*)و
(ノ°ο°)ノ
(´இ皿இ`)
⌇●﹏●⌇
(ฅ´ω`ฅ)
(╯°A°)╯︵○○○
φ( ̄∇ ̄o)
ヾ(´・ ・`。)ノ"
( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃
(ó﹏ò。)
Σ(っ °Д °;)っ
( ,,´・ω・)ノ"(´っω・`。)
╮(╯▽╰)╭
o(*////▽////*)q
>﹏<
( ๑´•ω•) "(ㆆᴗㆆ)
😂
😀
😅
😊
🙂
🙃
😌
😍
😘
😜
😝
😏
😒
🙄
😳
😡
😔
😫
😱
😭
💩
👻
🙌
🖕
👍
👫
👬
👭
🌚
🌝
🙈
💊
😶
🙏
🍦
🍉
😣
Source: github.com/k4yt3x/flowerhd
颜文字
Emoji
小恐龙
花!
上一篇
下一篇