Documentation ¶
Index ¶
- Constants
- type AddContactWayRequest
- type AddContactWayResponse
- type AddCropTagItem
- type AddCropTagRequest
- type AddCropTagResponse
- type AddMsgTemplateRequest
- type AddMsgTemplateResponse
- type Attachment
- type AttachmentFile
- type AttachmentImg
- type AttachmentLink
- type AttachmentMiniProgram
- type AttachmentVideo
- type BatchGetExternalUserDetailsRequest
- type BehaviorData
- type Client
- func (r *Client) AddContactWay(req *AddContactWayRequest) (*AddContactWayResponse, error)
- func (r *Client) AddCropTag(req AddCropTagRequest) (*TagGroup, error)
- func (r *Client) AddMsgTemplate(req *AddMsgTemplateRequest) (*AddMsgTemplateResponse, error)
- func (r *Client) BatchGetExternalUserDetails(request BatchGetExternalUserDetailsRequest) ([]ExternalUserForBatch, error)
- func (r *Client) DelContactWay(req *DelContactWayRequest) (*DelContactWayResponse, error)
- func (r *Client) DeleteCropTag(req DeleteCropTagRequest) error
- func (r *Client) EditCropTag(req EditCropTagRequest) error
- func (r *Client) GetContactWay(req *GetContactWayRequest) (*GetContactWayResponse, error)
- func (r *Client) GetCropTagList(req GetCropTagRequest) ([]TagGroup, error)
- func (r *Client) GetExternalUserDetail(externalUserID string, nextCursor ...string) (*ExternalUser, error)
- func (r *Client) GetExternalUserList(userID string) ([]string, error)
- func (r *Client) GetFollowUserList() ([]string, error)
- func (r *Client) GetGroupChatStat(req *GetGroupChatStatRequest) (*GetGroupChatStatResponse, error)
- func (r *Client) GetGroupChatStatByDay(req *GetGroupChatStatByDayRequest) ([]GetGroupChatStatByDayItem, error)
- func (r *Client) GetGroupMsgListV2(req *GetGroupMsgListV2Request) (*GetGroupMsgListV2Response, error)
- func (r *Client) GetGroupMsgSendResult(req *GetGroupMsgSendResultRequest) (*GetGroupMsgSendResultResponse, error)
- func (r *Client) GetGroupMsgTask(req *GetGroupMsgTaskRequest) (*GetGroupMsgTaskResponse, error)
- func (r *Client) GetUserBehaviorData(req *GetUserBehaviorRequest) ([]BehaviorData, error)
- func (r *Client) ListContactWay(req *ListContactWayRequest) (*ListContactWayResponse, error)
- func (r *Client) MarkTag(request MarkTagRequest) error
- func (r *Client) SendWelcomeMsg(req *SendWelcomeMsgRequest) error
- func (r *Client) UpdateContactWay(req *UpdateContactWayRequest) (*UpdateContactWayResponse, error)
- func (r *Client) UpdateUserRemark(request UpdateUserRemarkRequest) error
- type ConclusionsImageRequest
- type ConclusionsImageResponse
- type ConclusionsLink
- type ConclusionsMiniProgram
- type ConclusionsRequest
- type ConclusionsResponse
- type ConclusionsText
- type ContactWay
- type ContactWayForList
- type DelContactWayRequest
- type DelContactWayResponse
- type DeleteCropTagRequest
- type EditCropTagRequest
- type ExternalContact
- type ExternalUser
- type ExternalUserDetailListResponse
- type ExternalUserDetailResponse
- type ExternalUserForBatch
- type ExternalUserListResponse
- type FollowInfo
- type FollowUser
- type GetContactWayRequest
- type GetContactWayResponse
- type GetCropTagListResponse
- type GetCropTagRequest
- type GetGroupChatStatByDayItem
- type GetGroupChatStatByDayRequest
- type GetGroupChatStatByDayResponse
- type GetGroupChatStatRequest
- type GetGroupChatStatResponse
- type GetGroupMsgListV2Request
- type GetGroupMsgListV2Response
- type GetGroupMsgSendResultRequest
- type GetGroupMsgSendResultResponse
- type GetGroupMsgTaskRequest
- type GetGroupMsgTaskResponse
- type GetUserBehaviorRequest
- type GetUserBehaviorResponse
- type GroupChatStatItem
- type GroupChatStatItemData
- type GroupMsg
- type ListContactWayRequest
- type ListContactWayResponse
- type MarkTagRequest
- type MsgText
- type OwnerFilter
- type Send
- type SendWelcomeMsgRequest
- type SendWelcomeMsgResponse
- type Tag
- type TagGroup
- type TagGroupTagItem
- type Task
- type UpdateContactWayRequest
- type UpdateContactWayResponse
- type UpdateUserRemarkRequest
- type WechatChannel
Constants ¶
const ( // AddContactWayURL 配置客户联系「联系我」方式 AddContactWayURL = "https://qyapi.weixin.qq.com/cgi-bin/externalcontact/add_contact_way?access_token=%s" // GetContactWayURL 获取企业已配置的「联系我」方式 GetContactWayURL = "https://qyapi.weixin.qq.com/cgi-bin/externalcontact/get_contact_way?access_token=%s" // UpdateContactWayURL 更新企业已配置的「联系我」方式 UpdateContactWayURL = "https://qyapi.weixin.qq.com/cgi-bin/externalcontact/update_contact_way?access_token=%s" // ListContactWayURL 获取企业已配置的「联系我」列表 ListContactWayURL = "https://qyapi.weixin.qq.com/cgi-bin/externalcontact/list_contact_way?access_token=%s" // DelContactWayURL 删除企业已配置的「联系我」方式 DelContactWayURL = "https://qyapi.weixin.qq.com/cgi-bin/externalcontact/del_contact_way?access_token=%s" )
const ( // FetchExternalContactUserListURL 获取客户列表 FetchExternalContactUserListURL = "https://qyapi.weixin.qq.com/cgi-bin/externalcontact/list" // FetchExternalContactUserDetailURL 获取客户详情 FetchExternalContactUserDetailURL = "https://qyapi.weixin.qq.com/cgi-bin/externalcontact/get" // FetchBatchExternalContactUserDetailURL 批量获取客户详情 FetchBatchExternalContactUserDetailURL = "https://qyapi.weixin.qq.com/cgi-bin/externalcontact/batch/get_by_user" // UpdateUserRemarkURL 更新客户备注信息 UpdateUserRemarkURL = "https://qyapi.weixin.qq.com/cgi-bin/externalcontact/remark" )
const ( // AddMsgTemplateURL 创建企业群发 AddMsgTemplateURL = "https://qyapi.weixin.qq.com/cgi-bin/externalcontact/add_msg_template?access_token=%s" // GetGroupMsgListV2URL 获取群发记录列表 GetGroupMsgListV2URL = "https://qyapi.weixin.qq.com/cgi-bin/externalcontact/get_groupmsg_list_v2?access_token=%s" // GetGroupMsgTaskURL 获取群发成员发送任务列表 GetGroupMsgTaskURL = "https://qyapi.weixin.qq.com/cgi-bin/externalcontact/get_groupmsg_task?access_token=%s" // GetGroupMsgSendResultURL 获取企业群发成员执行结果 GetGroupMsgSendResultURL = "https://qyapi.weixin.qq.com/cgi-bin/externalcontact/get_groupmsg_send_result?access_token=%s" // SendWelcomeMsgURL 发送新客户欢迎语 SendWelcomeMsgURL = "https://qyapi.weixin.qq.com/cgi-bin/externalcontact/send_welcome_msg?access_token=%s" )
const ( // GetUserBehaviorDataURL 获取「联系客户统计」数据 GetUserBehaviorDataURL = "https://qyapi.weixin.qq.com/cgi-bin/externalcontact/get_user_behavior_data" // GetGroupChatStatURL 获取「群聊数据统计」数据 按群主聚合的方式 GetGroupChatStatURL = "https://qyapi.weixin.qq.com/cgi-bin/externalcontact/groupchat/statistic" // GetGroupChatStatByDayURL 获取「群聊数据统计」数据 按自然日聚合的方式 GetGroupChatStatByDayURL = "https://qyapi.weixin.qq.com/cgi-bin/externalcontact/groupchat/statistic_group_by_day" )
const ( // GetCropTagURL 获取标签列表 GetCropTagURL = "https://qyapi.weixin.qq.com/cgi-bin/externalcontact/get_corp_tag_list" // AddCropTagURL 添加标签 AddCropTagURL = "https://qyapi.weixin.qq.com/cgi-bin/externalcontact/add_corp_tag" // EditCropTagURL 修改标签 EditCropTagURL = "https://qyapi.weixin.qq.com/cgi-bin/externalcontact/edit_corp_tag" // DelCropTagURL 删除标签 DelCropTagURL = "https://qyapi.weixin.qq.com/cgi-bin/externalcontact/del_corp_tag" // MarkCropTagURL 为客户打上、删除标签 MarkCropTagURL = "https://qyapi.weixin.qq.com/cgi-bin/externalcontact/mark_tag" )
const (
// FetchFollowUserListURL 获取配置了客户联系功能的成员列表
FetchFollowUserListURL = "https://qyapi.weixin.qq.com/cgi-bin/externalcontact/get_follow_user_list"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddContactWayRequest ¶ added in v2.1.4
type AddContactWayRequest struct { Type int `json:"type"` Scene int `json:"scene"` Style int `json:"style"` Remark string `json:"remark"` SkipVerify bool `json:"skip_verify"` State string `json:"state"` User []string `json:"user"` Party []int `json:"party"` IsTemp bool `json:"is_temp"` ExpiresIn int `json:"expires_in"` ChatExpiresIn int `json:"chat_expires_in"` UnionID string `json:"unionid"` Conclusions ConclusionsRequest `json:"conclusions"` }
AddContactWayRequest 配置客户联系「联系我」方式请求
type AddContactWayResponse ¶ added in v2.1.4
type AddContactWayResponse struct { util.CommonError ConfigID string `json:"config_id"` QrCode string `json:"qr_code"` }
AddContactWayResponse 配置客户联系「联系我」方式响应
type AddCropTagItem ¶
AddCropTagItem 添加企业标签子项
type AddCropTagRequest ¶
type AddCropTagRequest struct { GroupID string `json:"group_id,omitempty"` GroupName string `json:"group_name"` Order int `json:"order"` Tag []AddCropTagItem `json:"tag"` AgentID int `json:"agentid"` }
AddCropTagRequest 添加企业标签请求
type AddCropTagResponse ¶
type AddCropTagResponse struct { util.CommonError TagGroup TagGroup `json:"tag_group"` }
AddCropTagResponse 添加企业标签响应
type AddMsgTemplateRequest ¶ added in v2.1.4
type AddMsgTemplateRequest struct { ChatType string `json:"chat_type"` ExternalUserID []string `json:"external_userid"` Sender string `json:"sender,omitempty"` Text MsgText `json:"text"` Attachments []*Attachment `json:"attachments"` }
AddMsgTemplateRequest 创建企业群发请求
type AddMsgTemplateResponse ¶ added in v2.1.4
type AddMsgTemplateResponse struct { util.CommonError FailList []string `json:"fail_list"` MsgID string `json:"msgid"` }
AddMsgTemplateResponse 创建企业群发响应
type Attachment ¶ added in v2.1.4
type Attachment struct { MsgType string `json:"msgtype"` Image AttachmentImg `json:"image,omitempty"` Link AttachmentLink `json:"link,omitempty"` MiniProgram AttachmentMiniProgram `json:"miniprogram,omitempty"` Video AttachmentVideo `json:"video,omitempty"` File AttachmentFile `json:"file,omitempty"` }
Attachment 附件
type AttachmentFile ¶ added in v2.1.4
type AttachmentFile struct {
MediaID string `json:"media_id"`
}
AttachmentFile 文件消息
type AttachmentImg ¶ added in v2.1.4
AttachmentImg 图片消息
type AttachmentLink ¶ added in v2.1.4
type AttachmentLink struct { Title string `json:"title"` PicURL string `json:"picurl"` Desc string `json:"desc"` URL string `json:"url"` }
AttachmentLink 图文消息
type AttachmentMiniProgram ¶ added in v2.1.4
type AttachmentMiniProgram struct { Title string `json:"title"` PicMediaID string `json:"pic_media_id"` AppID string `json:"appid"` Page string `json:"page"` }
AttachmentMiniProgram 小程序消息
type AttachmentVideo ¶ added in v2.1.4
type AttachmentVideo struct {
MediaID string `json:"media_id"`
}
AttachmentVideo 视频消息
type BatchGetExternalUserDetailsRequest ¶
type BatchGetExternalUserDetailsRequest struct { UserIDList []string `json:"userid_list"` Cursor string `json:"cursor"` }
BatchGetExternalUserDetailsRequest 批量获取外部联系人详情请求
type BehaviorData ¶ added in v2.1.4
type BehaviorData struct { StatTime int `json:"stat_time"` ChatCnt int `json:"chat_cnt"` MessageCnt int `json:"message_cnt"` ReplyPercentage float64 `json:"reply_percentage"` AvgReplyTime int `json:"avg_reply_time"` NegativeFeedbackCnt int `json:"negative_feedback_cnt"` NewApplyCnt int `json:"new_apply_cnt"` NewContactCnt int `json:"new_contact_cnt"` }
BehaviorData 联系客户统计数据
type Client ¶
Client 外部联系接口实例
func (*Client) AddContactWay ¶ added in v2.1.4
func (r *Client) AddContactWay(req *AddContactWayRequest) (*AddContactWayResponse, error)
AddContactWay 配置客户联系「联系我」方式 see https://developer.work.weixin.qq.com/document/path/92228
func (*Client) AddCropTag ¶
func (r *Client) AddCropTag(req AddCropTagRequest) (*TagGroup, error)
AddCropTag 添加企业客户标签 @see https://developer.work.weixin.qq.com/document/path/92117
func (*Client) AddMsgTemplate ¶ added in v2.1.4
func (r *Client) AddMsgTemplate(req *AddMsgTemplateRequest) (*AddMsgTemplateResponse, error)
AddMsgTemplate 创建企业群发 see https://developer.work.weixin.qq.com/document/path/92135
func (*Client) BatchGetExternalUserDetails ¶
func (r *Client) BatchGetExternalUserDetails(request BatchGetExternalUserDetailsRequest) ([]ExternalUserForBatch, error)
BatchGetExternalUserDetails 批量获取外部联系人详情
func (*Client) DelContactWay ¶ added in v2.1.4
func (r *Client) DelContactWay(req *DelContactWayRequest) (*DelContactWayResponse, error)
DelContactWay 删除企业已配置的「联系我」方式 see https://developer.work.weixin.qq.com/document/path/92228
func (*Client) DeleteCropTag ¶
func (r *Client) DeleteCropTag(req DeleteCropTagRequest) error
DeleteCropTag 删除企业客户标签 @see https://developer.work.weixin.qq.com/document/path/92117
func (*Client) EditCropTag ¶
func (r *Client) EditCropTag(req EditCropTagRequest) error
EditCropTag 修改企业客户标签 @see https://developer.work.weixin.qq.com/document/path/92117
func (*Client) GetContactWay ¶ added in v2.1.4
func (r *Client) GetContactWay(req *GetContactWayRequest) (*GetContactWayResponse, error)
GetContactWay 获取企业已配置的「联系我」方式 see https://developer.work.weixin.qq.com/document/path/92228
func (*Client) GetCropTagList ¶
func (r *Client) GetCropTagList(req GetCropTagRequest) ([]TagGroup, error)
GetCropTagList 获取企业标签库 @see https://developer.work.weixin.qq.com/document/path/92117
func (*Client) GetExternalUserDetail ¶
func (r *Client) GetExternalUserDetail(externalUserID string, nextCursor ...string) (*ExternalUser, error)
GetExternalUserDetail 获取外部联系人详情
func (*Client) GetExternalUserList ¶
GetExternalUserList 获取客户列表 @see https://developer.work.weixin.qq.com/document/path/92113
func (*Client) GetFollowUserList ¶
GetFollowUserList 获取配置了客户联系功能的成员列表 @see https://developer.work.weixin.qq.com/document/path/92571
func (*Client) GetGroupChatStat ¶ added in v2.1.4
func (r *Client) GetGroupChatStat(req *GetGroupChatStatRequest) (*GetGroupChatStatResponse, error)
GetGroupChatStat 获取「群聊数据统计」数据 按群主聚合的方式 @see https://developer.work.weixin.qq.com/document/path/92133
func (*Client) GetGroupChatStatByDay ¶ added in v2.1.4
func (r *Client) GetGroupChatStatByDay(req *GetGroupChatStatByDayRequest) ([]GetGroupChatStatByDayItem, error)
GetGroupChatStatByDay 获取「群聊数据统计」数据 按自然日聚合的方式 @see https://developer.work.weixin.qq.com/document/path/92133
func (*Client) GetGroupMsgListV2 ¶ added in v2.1.4
func (r *Client) GetGroupMsgListV2(req *GetGroupMsgListV2Request) (*GetGroupMsgListV2Response, error)
GetGroupMsgListV2 获取群发记录列表 see https://developer.work.weixin.qq.com/document/path/93338#%E8%8E%B7%E5%8F%96%E7%BE%A4%E5%8F%91%E8%AE%B0%E5%BD%95%E5%88%97%E8%A1%A8
func (*Client) GetGroupMsgSendResult ¶ added in v2.1.4
func (r *Client) GetGroupMsgSendResult(req *GetGroupMsgSendResultRequest) (*GetGroupMsgSendResultResponse, error)
GetGroupMsgSendResult 获取企业群发成员执行结果 see https://developer.work.weixin.qq.com/document/path/93338#%E8%8E%B7%E5%8F%96%E4%BC%81%E4%B8%9A%E7%BE%A4%E5%8F%91%E6%88%90%E5%91%98%E6%89%A7%E8%A1%8C%E7%BB%93%E6%9E%9C
func (*Client) GetGroupMsgTask ¶ added in v2.1.4
func (r *Client) GetGroupMsgTask(req *GetGroupMsgTaskRequest) (*GetGroupMsgTaskResponse, error)
GetGroupMsgTask 获取群发成员发送任务列表 see https://developer.work.weixin.qq.com/document/path/93338#%E8%8E%B7%E5%8F%96%E7%BE%A4%E5%8F%91%E6%88%90%E5%91%98%E5%8F%91%E9%80%81%E4%BB%BB%E5%8A%A1%E5%88%97%E8%A1%A8
func (*Client) GetUserBehaviorData ¶ added in v2.1.4
func (r *Client) GetUserBehaviorData(req *GetUserBehaviorRequest) ([]BehaviorData, error)
GetUserBehaviorData 获取「联系客户统计」数据 @see https://developer.work.weixin.qq.com/document/path/92132
func (*Client) ListContactWay ¶ added in v2.1.4
func (r *Client) ListContactWay(req *ListContactWayRequest) (*ListContactWayResponse, error)
ListContactWay 获取企业已配置的「联系我」列表 see https://developer.work.weixin.qq.com/document/path/92228
func (*Client) MarkTag ¶
func (r *Client) MarkTag(request MarkTagRequest) error
MarkTag 为客户打上标签 @see https://developer.work.weixin.qq.com/document/path/92118
func (*Client) SendWelcomeMsg ¶ added in v2.1.4
func (r *Client) SendWelcomeMsg(req *SendWelcomeMsgRequest) error
SendWelcomeMsg 发送新客户欢迎语 see https://developer.work.weixin.qq.com/document/path/92137
func (*Client) UpdateContactWay ¶ added in v2.1.4
func (r *Client) UpdateContactWay(req *UpdateContactWayRequest) (*UpdateContactWayResponse, error)
UpdateContactWay 更新企业已配置的「联系我」方式 see https://developer.work.weixin.qq.com/document/path/92228
func (*Client) UpdateUserRemark ¶
func (r *Client) UpdateUserRemark(request UpdateUserRemarkRequest) error
UpdateUserRemark 修改客户备注信息
type ConclusionsImageRequest ¶ added in v2.1.4
type ConclusionsImageRequest struct {
MediaID string `json:"media_id"`
}
ConclusionsImageRequest 图片格式结束语请求
type ConclusionsImageResponse ¶ added in v2.1.4
type ConclusionsImageResponse struct {
PicURL string `json:"pic_url"`
}
ConclusionsImageResponse 图片格式结束语响应
type ConclusionsLink ¶ added in v2.1.4
type ConclusionsLink struct { Title string `json:"title"` PicURL string `json:"picurl"` Desc string `json:"desc"` URL string `json:"url"` }
ConclusionsLink 链接格式结束语
type ConclusionsMiniProgram ¶ added in v2.1.4
type ConclusionsMiniProgram struct { Title string `json:"title"` PicMediaID string `json:"pic_media_id"` AppID string `json:"appid"` Page string `json:"page"` }
ConclusionsMiniProgram 小程序格式结束语
type ConclusionsRequest ¶ added in v2.1.4
type ConclusionsRequest struct { Text ConclusionsText `json:"text"` Image ConclusionsImageRequest `json:"image"` Link ConclusionsLink `json:"link"` MiniProgram ConclusionsMiniProgram `json:"miniprogram"` }
ConclusionsRequest 结束语请求
type ConclusionsResponse ¶ added in v2.1.4
type ConclusionsResponse struct { Text ConclusionsText `json:"text"` Image ConclusionsImageResponse `json:"image"` Link ConclusionsLink `json:"link"` MiniProgram ConclusionsMiniProgram `json:"miniprogram"` }
ConclusionsResponse 结束语响应
type ConclusionsText ¶ added in v2.1.4
type ConclusionsText struct {
Content string `json:"content"`
}
ConclusionsText 文本格式结束语
type ContactWay ¶ added in v2.1.4
type ContactWay struct { ConfigID string `json:"config_id"` Type int `json:"type"` Scene int `json:"scene"` Style int `json:"style"` Remark string `json:"remark"` SkipVerify bool `json:"skip_verify"` State string `json:"state"` QrCode string `json:"qr_code"` User []string `json:"user"` Party []int `json:"party"` IsTemp bool `json:"is_temp"` ExpiresIn int `json:"expires_in"` ChatExpiresIn int `json:"chat_expires_in"` UnionID string `json:"unionid"` Conclusions ConclusionsResponse `json:"conclusions"` }
ContactWay 「联系我」配置
type ContactWayForList ¶ added in v2.1.4
type ContactWayForList struct {
ConfigID string `json:"config_id"`
}
ContactWayForList 「联系我」配置
type DelContactWayRequest ¶ added in v2.1.4
type DelContactWayRequest struct {
ConfigID string `json:"config_id"`
}
DelContactWayRequest 删除企业已配置的「联系我」方式请求
type DelContactWayResponse ¶ added in v2.1.4
type DelContactWayResponse struct {
util.CommonError
}
DelContactWayResponse 删除企业已配置的「联系我」方式响应
type DeleteCropTagRequest ¶
type DeleteCropTagRequest struct { TagID []string `json:"tag_id"` GroupID []string `json:"group_id"` AgentID string `json:"agent_id"` }
DeleteCropTagRequest 删除企业标签请求
type EditCropTagRequest ¶
type EditCropTagRequest struct { ID string `json:"id"` Name string `json:"name"` Order int `json:"order"` AgentID string `json:"agent_id"` }
EditCropTagRequest 编辑客户企业标签请求
type ExternalContact ¶ added in v2.1.4
type ExternalContact struct { ExternalUserID string `json:"external_userid"` Name string `json:"name"` Position string `json:"position"` Avatar string `json:"avatar"` CorpName string `json:"corp_name"` CorpFullName string `json:"corp_full_name"` Type int64 `json:"type"` Gender int64 `json:"gender"` UnionID string `json:"unionid"` ExternalProfile string `json:"external_profile"` }
ExternalContact 批量获取外部联系人用户信息
type ExternalUser ¶
type ExternalUser struct { ExternalUserID string `json:"external_userid"` Name string `json:"name"` Avatar string `json:"avatar"` Type int64 `json:"type"` Gender int64 `json:"gender"` UnionID string `json:"unionid"` Position string `json:"position"` CorpName string `json:"corp_name"` CorpFullName string `json:"corp_full_name"` ExternalProfile string `json:"external_profile"` FollowUser []FollowUser `json:"follow_user"` NextCursor string `json:"next_cursor"` }
ExternalUser 外部联系人
type ExternalUserDetailListResponse ¶
type ExternalUserDetailListResponse struct { util.CommonError ExternalContactList []ExternalUserForBatch `json:"external_contact_list"` }
ExternalUserDetailListResponse 批量获取外部联系人详情响应
type ExternalUserDetailResponse ¶
type ExternalUserDetailResponse struct { util.CommonError ExternalUser }
ExternalUserDetailResponse 外部联系人详情响应
type ExternalUserForBatch ¶ added in v2.1.4
type ExternalUserForBatch struct { ExternalContact ExternalContact `json:"external_contact"` FollowInfo FollowInfo `json:"follow_info"` }
ExternalUserForBatch 批量获取外部联系人客户列表
type ExternalUserListResponse ¶
type ExternalUserListResponse struct { util.CommonError ExternalUserID []string `json:"external_userid"` }
ExternalUserListResponse 外部联系人列表响应
type FollowInfo ¶ added in v2.1.4
type FollowInfo struct { UserID string `json:"userid"` Remark string `json:"remark"` Description string `json:"description"` CreateTime int `json:"create_time"` TagID []string `json:"tag_id"` RemarkCorpName string `json:"remark_corp_name"` RemarkMobiles []string `json:"remark_mobiles"` OperUserID string `json:"oper_userid"` AddWay int64 `json:"add_way"` WeChatChannels WechatChannel `json:"wechat_channels"` }
FollowInfo 批量获取外部联系人跟进人信息
type FollowUser ¶
type FollowUser struct { UserID string `json:"userid"` Remark string `json:"remark"` Description string `json:"description"` CreateTime string `json:"create_time"` Tags []Tag `json:"tags"` RemarkCorpName string `json:"remark_corp_name"` RemarkMobiles []string `json:"remark_mobiles"` OperUserID string `json:"oper_userid"` AddWay int64 `json:"add_way"` WeChatChannels WechatChannel `json:"wechat_channels"` State string `json:"state"` }
FollowUser 跟进用户(指企业内部用户)
type GetContactWayRequest ¶ added in v2.1.4
type GetContactWayRequest struct {
ConfigID string `json:"config_id"`
}
GetContactWayRequest 获取企业已配置的「联系我」方式请求
type GetContactWayResponse ¶ added in v2.1.4
type GetContactWayResponse struct { util.CommonError ContactWay ContactWay `json:"contact_way"` }
GetContactWayResponse 获取企业已配置的「联系我」方式响应
type GetCropTagListResponse ¶
type GetCropTagListResponse struct { util.CommonError TagGroup []TagGroup `json:"tag_group"` }
GetCropTagListResponse 获取企业标签列表响应
type GetCropTagRequest ¶
GetCropTagRequest 获取企业标签请求
type GetGroupChatStatByDayItem ¶ added in v2.1.4
type GetGroupChatStatByDayItem struct { StatTime int `json:"stat_time"` Data GroupChatStatItemData `json:"data"` }
GetGroupChatStatByDayItem 群聊数据统计(按自然日聚合)条目
type GetGroupChatStatByDayRequest ¶ added in v2.1.4
type GetGroupChatStatByDayRequest struct { DayBeginTime int `json:"day_begin_time"` DayEndTime int `json:"day_end_time"` OwnerFilter OwnerFilter `json:"owner_filter"` }
GetGroupChatStatByDayRequest 获取「群聊数据统计」数据 按自然日聚合的方式 请求
type GetGroupChatStatByDayResponse ¶ added in v2.1.4
type GetGroupChatStatByDayResponse struct { util.CommonError Items []GetGroupChatStatByDayItem `json:"items"` }
GetGroupChatStatByDayResponse 获取「群聊数据统计」数据 按自然日聚合的方式 响应
type GetGroupChatStatRequest ¶ added in v2.1.4
type GetGroupChatStatRequest struct { DayBeginTime int `json:"day_begin_time"` DayEndTime int `json:"day_end_time"` OwnerFilter OwnerFilter `json:"owner_filter"` OrderBy int `json:"order_by"` OrderAsc int `json:"order_asc"` Offset int `json:"offset"` Limit int `json:"limit"` }
GetGroupChatStatRequest 获取「群聊数据统计」数据 按群主聚合的方式 请求
type GetGroupChatStatResponse ¶ added in v2.1.4
type GetGroupChatStatResponse struct { util.CommonError Total int `json:"total"` NextOffset int `json:"next_offset"` Items []GroupChatStatItem `json:"items"` }
GetGroupChatStatResponse 获取「群聊数据统计」数据 按群主聚合的方式 响应
type GetGroupMsgListV2Request ¶ added in v2.1.4
type GetGroupMsgListV2Request struct { ChatType string `json:"chat_type"` StartTime int `json:"start_time"` EndTime int `json:"end_time"` Creator string `json:"creator,omitempty"` FilterType int `json:"filter_type"` Limit int `json:"limit"` Cursor string `json:"cursor"` }
GetGroupMsgListV2Request 获取群发记录列表请求
type GetGroupMsgListV2Response ¶ added in v2.1.4
type GetGroupMsgListV2Response struct { util.CommonError NextCursor string `json:"next_cursor"` GroupMsgList []*GroupMsg `json:"group_msg_list"` }
GetGroupMsgListV2Response 获取群发记录列表响应
type GetGroupMsgSendResultRequest ¶ added in v2.1.4
type GetGroupMsgSendResultRequest struct { MsgID string `json:"msgid"` UserID string `json:"userid"` Limit int `json:"limit"` Cursor string `json:"cursor"` }
GetGroupMsgSendResultRequest 获取企业群发成员执行结果请求
type GetGroupMsgSendResultResponse ¶ added in v2.1.4
type GetGroupMsgSendResultResponse struct { util.CommonError NextCursor string `json:"next_cursor"` SendList []*Send `json:"send_list"` }
GetGroupMsgSendResultResponse 获取企业群发成员执行结果响应
type GetGroupMsgTaskRequest ¶ added in v2.1.4
type GetGroupMsgTaskRequest struct { MsgID string `json:"msgid"` Limit int `json:"limit"` Cursor string `json:"cursor"` }
GetGroupMsgTaskRequest 获取群发成员发送任务列表请求
type GetGroupMsgTaskResponse ¶ added in v2.1.4
type GetGroupMsgTaskResponse struct { util.CommonError NextCursor string `json:"next_cursor"` TaskList []*Task `json:"task_list"` }
GetGroupMsgTaskResponse 获取群发成员发送任务列表响应
type GetUserBehaviorRequest ¶ added in v2.1.4
type GetUserBehaviorRequest struct { UserID []string `json:"userid"` PartyID []int `json:"partyid"` StartTime int `json:"start_time"` EndTime int `json:"end_time"` }
GetUserBehaviorRequest 获取「联系客户统计」数据请求
type GetUserBehaviorResponse ¶ added in v2.1.4
type GetUserBehaviorResponse struct { util.CommonError BehaviorData []BehaviorData `json:"behavior_data"` }
GetUserBehaviorResponse 获取「联系客户统计」数据响应
type GroupChatStatItem ¶ added in v2.1.4
type GroupChatStatItem struct { Owner string `json:"owner"` Data GroupChatStatItemData `json:"data"` }
GroupChatStatItem 群聊数据统计(按群主聚合)条目
type GroupChatStatItemData ¶ added in v2.1.4
type GroupChatStatItemData struct { NewChatCnt int `json:"new_chat_cnt"` ChatTotal int `json:"chat_total"` ChatHasMsg int `json:"chat_has_msg"` NewMemberCnt int `json:"new_member_cnt"` MemberTotal int `json:"member_total"` MemberHasMsg int `json:"member_has_msg"` MsgTotal int `json:"msg_total"` MigrateTraineeChatCnt int `json:"migrate_trainee_chat_cnt"` }
GroupChatStatItemData 群聊数据统计条目数据
type GroupMsg ¶ added in v2.1.4
type GroupMsg struct { MsgID string `json:"msgid"` Creator string `json:"creator"` CreateTime int `json:"create_time"` CreateType int `json:"create_type"` Text MsgText `json:"text"` Attachments []*Attachment `json:"attachments"` }
GroupMsg 群发消息
type ListContactWayRequest ¶ added in v2.1.4
type ListContactWayRequest struct { StartTime int `json:"start_time"` EndTime int `json:"end_time"` Cursor string `json:"cursor"` Limit int `json:"limit"` }
ListContactWayRequest 获取企业已配置的「联系我」列表请求
type ListContactWayResponse ¶ added in v2.1.4
type ListContactWayResponse struct { util.CommonError ContactWay []*ContactWayForList `json:"contact_way"` NextCursor string `json:"next_cursor"` }
ListContactWayResponse 获取企业已配置的「联系我」列表响应
type MarkTagRequest ¶
type MarkTagRequest struct { UserID string `json:"userid"` ExternalUserID string `json:"external_userid"` AddTag []string `json:"add_tag"` RemoveTag []string `json:"remove_tag"` }
MarkTagRequest 给客户打标签请求 相关文档地址:https://developer.work.weixin.qq.com/document/path/92118
type OwnerFilter ¶ added in v2.1.4
type OwnerFilter struct {
UseridList []string `json:"userid_list"`
}
OwnerFilter 群主过滤
type Send ¶ added in v2.1.4
type Send struct { ExternalUserID string `json:"external_userid"` ChatID string `json:"chat_id"` UserID string `json:"userid"` Status int `json:"status"` SendTime int `json:"send_time"` }
Send 企业群发成员执行结果
type SendWelcomeMsgRequest ¶ added in v2.1.4
type SendWelcomeMsgRequest struct { WelcomeCode string `json:"welcome_code"` Text MsgText `json:"text"` Attachments []*Attachment `json:"attachments"` }
SendWelcomeMsgRequest 发送新客户欢迎语请求
type SendWelcomeMsgResponse ¶ added in v2.1.4
type SendWelcomeMsgResponse struct {
util.CommonError
}
SendWelcomeMsgResponse 发送新客户欢迎语响应
type Tag ¶
type Tag struct { GroupName string `json:"group_name"` TagName string `json:"tag_name"` Type int64 `json:"type"` TagID string `json:"tag_id"` }
Tag 已绑定在外部联系人的标签
type TagGroup ¶
type TagGroup struct { GroupID string `json:"group_id"` GroupName string `json:"group_name"` CreateTime int `json:"create_time"` GroupOrder int `json:"group_order"` Deleted bool `json:"deleted"` Tag []TagGroupTagItem `json:"tag"` }
TagGroup 企业标签组
type TagGroupTagItem ¶
type TagGroupTagItem struct { ID string `json:"id"` Name string `json:"name"` CreateTime int `json:"create_time"` Order int `json:"order"` Deleted bool `json:"deleted"` }
TagGroupTagItem 企业标签内的子项
type Task ¶ added in v2.1.4
type Task struct { UserID string `json:"userid"` Status int `json:"status"` SendTime int `json:"send_time"` }
Task 获取群发成员发送任务列表任务
type UpdateContactWayRequest ¶ added in v2.1.4
type UpdateContactWayRequest struct { ConfigID string `json:"config_id"` Remark string `json:"remark"` SkipVerify bool `json:"skip_verify"` Style int `json:"style"` State string `json:"state"` User []string `json:"user"` Party []int `json:"party"` ExpiresIn int `json:"expires_in"` ChatExpiresIn int `json:"chat_expires_in"` UnionID string `json:"unionid"` Conclusions ConclusionsRequest `json:"conclusions"` }
UpdateContactWayRequest 更新企业已配置的「联系我」方式请求
type UpdateContactWayResponse ¶ added in v2.1.4
type UpdateContactWayResponse struct {
util.CommonError
}
UpdateContactWayResponse 更新企业已配置的「联系我」方式响应
type UpdateUserRemarkRequest ¶
type UpdateUserRemarkRequest struct { UserID string `json:"userid"` ExternalUserID string `json:"external_userid"` Remark string `json:"remark"` Description string `json:"description"` RemarkCompany string `json:"remark_company"` RemarkMobiles []string `json:"remark_mobiles"` RemarkPicMediaID string `json:"remark_pic_mediaid"` }
UpdateUserRemarkRequest 修改客户备注信息请求体
type WechatChannel ¶
WechatChannel 视频号添加的场景