Versions in this module Expand all Collapse all v2 v2.1.5557 Feb 25, 2023 v2.1.5556 Oct 31, 2022 v2.1.5555 Oct 29, 2022 Changes in this version + const AddContactWayURL + const AddCropTagURL + const AddGroupWelcomeTemplateURL + const AddMsgTemplateURL + const DelContactWayURL + const DelCropTagURL + const DelGroupWelcomeTemplateURL + const EditCropTagURL + const EditGroupWelcomeTemplateURL + const FetchBatchExternalContactUserDetailURL + const FetchExternalContactUserDetailURL + const FetchExternalContactUserListURL + const FetchFollowUserListURL + const GetContactWayURL + const GetCropTagURL + const GetGroupChatStatByDayURL + const GetGroupChatStatURL + const GetGroupMsgListV2URL + const GetGroupMsgSendResultURL + const GetGroupMsgTaskURL + const GetGroupWelcomeTemplateURL + const GetUserBehaviorDataURL + const ListContactWayURL + const MarkCropTagURL + const SendWelcomeMsgURL + const UpdateContactWayURL + const UpdateUserRemarkURL + type AddContactWayRequest struct + ChatExpiresIn int + Conclusions ConclusionsRequest + ExpiresIn int + IsTemp bool + Party []int + Remark string + Scene int + SkipVerify bool + State string + Style int + Type int + UnionID string + User []string + type AddContactWayResponse struct + ConfigID string + QrCode string + type AddCropTagItem struct + Name string + Order int + type AddCropTagRequest struct + AgentID int + GroupID string + GroupName string + Order int + Tag []AddCropTagItem + type AddCropTagResponse struct + TagGroup TagGroup + type AddGroupWelcomeTemplateRequest struct + AgentID int + File AttachmentFile + Image AttachmentImg + Link AttachmentLink + MiniProgram AttachmentMiniProgram + Notify int + Text MsgText + Video AttachmentVideo + type AddGroupWelcomeTemplateResponse struct + TemplateID string + type AddMsgTemplateRequest struct + Attachments []*Attachment + ChatType string + ExternalUserID []string + Sender string + Text MsgText + type AddMsgTemplateResponse struct + FailList []string + MsgID string + type Attachment struct + File AttachmentFile + Image AttachmentImg + Link AttachmentLink + MiniProgram AttachmentMiniProgram + MsgType string + Video AttachmentVideo + type AttachmentFile struct + MediaID string + type AttachmentImg struct + MediaID string + PicURL string + type AttachmentLink struct + Desc string + PicURL string + Title string + URL string + type AttachmentMiniProgram struct + AppID string + Page string + PicMediaID string + Title string + type AttachmentVideo struct + MediaID string + type BatchGetExternalUserDetailsRequest struct + Cursor string + UserIDList []string + type BehaviorData struct + AvgReplyTime int + ChatCnt int + MessageCnt int + NegativeFeedbackCnt int + NewApplyCnt int + NewContactCnt int + ReplyPercentage float64 + StatTime int + type Client struct + func NewClient(ctx *context.Context) *Client + func (r *Client) AddContactWay(req *AddContactWayRequest) (*AddContactWayResponse, error) + func (r *Client) AddCropTag(req AddCropTagRequest) (*TagGroup, error) + func (r *Client) AddGroupWelcomeTemplate(req *AddGroupWelcomeTemplateRequest) (*AddGroupWelcomeTemplateResponse, 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) DelGroupWelcomeTemplate(req *DelGroupWelcomeTemplateRequest) error + func (r *Client) DeleteCropTag(req DeleteCropTagRequest) error + func (r *Client) EditCropTag(req EditCropTagRequest) error + func (r *Client) EditGroupWelcomeTemplate(req *EditGroupWelcomeTemplateRequest) 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) (*ExternalUserDetailResponse, 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) GetGroupWelcomeTemplate(req *GetGroupWelcomeTemplateRequest) (*GetGroupWelcomeTemplateResponse, 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 struct + MediaID string + type ConclusionsImageResponse struct + PicURL string + type ConclusionsLink struct + Desc string + PicURL string + Title string + URL string + type ConclusionsMiniProgram struct + AppID string + Page string + PicMediaID string + Title string + type ConclusionsRequest struct + Image ConclusionsImageRequest + Link ConclusionsLink + MiniProgram ConclusionsMiniProgram + Text ConclusionsText + type ConclusionsResponse struct + Image ConclusionsImageResponse + Link ConclusionsLink + MiniProgram ConclusionsMiniProgram + Text ConclusionsText + type ConclusionsText struct + Content string + type ContactWay struct + ChatExpiresIn int + Conclusions ConclusionsResponse + ConfigID string + ExpiresIn int + IsTemp bool + Party []int + QrCode string + Remark string + Scene int + SkipVerify bool + State string + Style int + Type int + UnionID string + User []string + type ContactWayForList struct + ConfigID string + type DelContactWayRequest struct + ConfigID string + type DelContactWayResponse struct + type DelGroupWelcomeTemplateRequest struct + AgentID int + TemplateID string + type DelGroupWelcomeTemplateResponse struct + type DeleteCropTagRequest struct + AgentID string + GroupID []string + TagID []string + type EditCropTagRequest struct + AgentID string + ID string + Name string + Order int + type EditGroupWelcomeTemplateRequest struct + AgentID int + File AttachmentFile + Image AttachmentImg + Link AttachmentLink + MiniProgram AttachmentMiniProgram + TemplateID string + Text MsgText + Video AttachmentVideo + type EditGroupWelcomeTemplateResponse struct + type ExternalContact struct + Avatar string + CorpFullName string + CorpName string + ExternalProfile string + ExternalUserID string + Gender int64 + Name string + Position string + Type int64 + UnionID string + type ExternalUser struct + Avatar string + CorpFullName string + CorpName string + ExternalProfile string + ExternalUserID string + Gender int64 + Name string + Position string + Type int64 + UnionID string + type ExternalUserDetailListResponse struct + ExternalContactList []ExternalUserForBatch + type ExternalUserDetailResponse struct + ExternalContact ExternalUser + FollowUser []FollowUser + NextCursor string + type ExternalUserForBatch struct + ExternalContact ExternalContact + FollowInfo FollowInfo + type ExternalUserListResponse struct + ExternalUserID []string + type FollowInfo struct + AddWay int64 + CreateTime int + Description string + OperUserID string + Remark string + RemarkCorpName string + RemarkMobiles []string + TagID []string + UserID string + WeChatChannels WechatChannel + type FollowUser struct + AddWay int64 + CreateTime string + Description string + OperUserID string + Remark string + RemarkCorpName string + RemarkMobiles []string + State string + Tags []Tag + UserID string + WeChatChannels WechatChannel + type GetContactWayRequest struct + ConfigID string + type GetContactWayResponse struct + ContactWay ContactWay + type GetCropTagListResponse struct + TagGroup []TagGroup + type GetCropTagRequest struct + GroupID []string + TagID []string + type GetGroupChatStatByDayItem struct + Data GroupChatStatItemData + StatTime int + type GetGroupChatStatByDayRequest struct + DayBeginTime int + DayEndTime int + OwnerFilter OwnerFilter + type GetGroupChatStatByDayResponse struct + Items []GetGroupChatStatByDayItem + type GetGroupChatStatRequest struct + DayBeginTime int + DayEndTime int + Limit int + Offset int + OrderAsc int + OrderBy int + OwnerFilter OwnerFilter + type GetGroupChatStatResponse struct + Items []GroupChatStatItem + NextOffset int + Total int + type GetGroupMsgListV2Request struct + ChatType string + Creator string + Cursor string + EndTime int + FilterType int + Limit int + StartTime int + type GetGroupMsgListV2Response struct + GroupMsgList []*GroupMsg + NextCursor string + type GetGroupMsgSendResultRequest struct + Cursor string + Limit int + MsgID string + UserID string + type GetGroupMsgSendResultResponse struct + NextCursor string + SendList []*Send + type GetGroupMsgTaskRequest struct + Cursor string + Limit int + MsgID string + type GetGroupMsgTaskResponse struct + NextCursor string + TaskList []*Task + type GetGroupWelcomeTemplateRequest struct + TemplateID string + type GetGroupWelcomeTemplateResponse struct + File AttachmentFile + Image AttachmentImg + Link AttachmentLink + MiniProgram AttachmentMiniProgram + Text MsgText + Video AttachmentVideo + type GetUserBehaviorRequest struct + EndTime int + PartyID []int + StartTime int + UserID []string + type GetUserBehaviorResponse struct + BehaviorData []BehaviorData + type GroupChatStatItem struct + Data GroupChatStatItemData + Owner string + type GroupChatStatItemData struct + ChatHasMsg int + ChatTotal int + MemberHasMsg int + MemberTotal int + MigrateTraineeChatCnt int + MsgTotal int + NewChatCnt int + NewMemberCnt int + type GroupMsg struct + Attachments []*Attachment + CreateTime int + CreateType int + Creator string + MsgID string + Text MsgText + type ListContactWayRequest struct + Cursor string + EndTime int + Limit int + StartTime int + type ListContactWayResponse struct + ContactWay []*ContactWayForList + NextCursor string + type MarkTagRequest struct + AddTag []string + ExternalUserID string + RemoveTag []string + UserID string + type MsgText struct + Content string + type OwnerFilter struct + UseridList []string + type Send struct + ChatID string + ExternalUserID string + SendTime int + Status int + UserID string + type SendWelcomeMsgRequest struct + Attachments []*Attachment + Text MsgText + WelcomeCode string + type SendWelcomeMsgResponse struct + type Tag struct + GroupName string + TagID string + TagName string + Type int64 + type TagGroup struct + CreateTime int + Deleted bool + GroupID string + GroupName string + GroupOrder int + Tag []TagGroupTagItem + type TagGroupTagItem struct + CreateTime int + Deleted bool + ID string + Name string + Order int + type Task struct + SendTime int + Status int + UserID string + type UpdateContactWayRequest struct + ChatExpiresIn int + Conclusions ConclusionsRequest + ConfigID string + ExpiresIn int + Party []int + Remark string + SkipVerify bool + State string + Style int + UnionID string + User []string + type UpdateContactWayResponse struct + type UpdateUserRemarkRequest struct + Description string + ExternalUserID string + Remark string + RemarkCompany string + RemarkMobiles []string + RemarkPicMediaID string + UserID string + type WechatChannel struct + NickName string + Source string