mirror of
https://github.com/silenceper/wechat.git
synced 2026-02-09 23:22:27 +08:00
企业微信内部开发API:新增获取客户列表,客户详情,并群发消息
This commit is contained in:
@@ -4,6 +4,7 @@ import (
|
||||
"github.com/silenceper/wechat/v2/credential"
|
||||
"github.com/silenceper/wechat/v2/work/config"
|
||||
"github.com/silenceper/wechat/v2/work/context"
|
||||
"github.com/silenceper/wechat/v2/work/externalcontact"
|
||||
"github.com/silenceper/wechat/v2/work/kf"
|
||||
"github.com/silenceper/wechat/v2/work/msgaudit"
|
||||
"github.com/silenceper/wechat/v2/work/oauth"
|
||||
@@ -65,3 +66,8 @@ func (wk *Work) GetUser() *user.User {
|
||||
func (wk *Work) GetCalendar() *tools.Calendar {
|
||||
return tools.NewCalendar(wk.ctx)
|
||||
}
|
||||
|
||||
//GetExternalContact 客户联系
|
||||
func (wk *Work) GetExternalContact() (*externalcontact.Client, error) {
|
||||
return externalcontact.NewClient(wk.ctx.Config)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user