Versions in this module Expand all Collapse all v2 v2.1.11 Nov 28, 2023 v2.1.10 Nov 28, 2023 v2.1.9 Nov 28, 2023 v2.1.8 Nov 28, 2023 Changes in this version + func NewSDKErr(code int64, msgList ...string) error + type AccountAddOptions struct + MediaID string + Name string + type AccountAddSchema struct + OpenKFID string + type AccountDelOptions struct + OpenKFID string + type AccountInfoSchema struct + Avatar string + Name string + OpenKFID string + type AccountListSchema struct + AccountList []AccountInfoSchema + type AccountUpdateOptions struct + MediaID string + Name string + OpenKFID string + type AddContactWayOptions struct + OpenKFID string + Scene string + type AddContactWaySchema struct + URL string + type AddKnowledgeGroupRequest struct + Name string + type AddKnowledgeGroupResponse struct + GroupID string + type AddKnowledgeIntentRequest struct + Answers []IntentAnswerReq + GroupID string + Question IntentQuestion + SimilarQuestions IntentSimilarQuestions + type AddKnowledgeIntentResponse struct + IntentID string + type CallbackMessage struct + CreateTime int64 + Event string + MsgType string + OpenKfID string + ToUserName string + Token string + type Client struct + func NewClient(cfg *config.Config) (client *Client, err error) + func (r *Client) AccountAdd(options AccountAddOptions) (info AccountAddSchema, err error) + func (r *Client) AccountDel(options AccountDelOptions) (info util.CommonError, err error) + func (r *Client) AccountList() (info AccountListSchema, err error) + func (r *Client) AccountUpdate(options AccountUpdateOptions) (info util.CommonError, err error) + func (r *Client) AddContactWay(options AddContactWayOptions) (info AddContactWaySchema, err error) + func (r *Client) AddKnowledgeGroup(req *AddKnowledgeGroupRequest) (*AddKnowledgeGroupResponse, error) + func (r *Client) AddKnowledgeIntent(req *AddKnowledgeIntentRequest) (*AddKnowledgeIntentResponse, error) + func (r *Client) CustomerBatchGet(options CustomerBatchGetOptions) (info CustomerBatchGetSchema, err error) + func (r *Client) DelKnowledgeGroup(req *DelKnowledgeGroupRequest) error + func (r *Client) DelKnowledgeIntent(req *DelKnowledgeIntentRequest) error + func (r *Client) GetCallbackMessage(encryptedMsg []byte) (msg CallbackMessage, err error) + func (r *Client) GetCorpQualification() (info CorpQualificationSchema, err error) + func (r *Client) GetCorpStatistic(req *GetCorpStatisticRequest) (*GetCorpStatisticResponse, error) + func (r *Client) GetServicerStatistic(req *GetServicerStatisticRequest) (*GetServicerStatisticResponse, error) + func (r *Client) ListKnowledgeGroup(req *ListKnowledgeGroupRequest) (*ListKnowledgeGroupResponse, error) + func (r *Client) ListKnowledgeIntent(req *ListKnowledgeIntentRequest) (*ListKnowledgeIntentResponse, error) + func (r *Client) ModKnowledgeGroup(req *ModKnowledgeGroupRequest) error + func (r *Client) ModKnowledgeIntent(req *ModKnowledgeIntentRequest) error + func (r *Client) ReceptionistAdd(options ReceptionistOptions) (info ReceptionistSchema, err error) + func (r *Client) ReceptionistDel(options ReceptionistOptions) (info ReceptionistSchema, err error) + func (r *Client) ReceptionistList(kfID string) (info ReceptionistListSchema, err error) + func (r *Client) SendMsg(options interface{}) (info SendMsgSchema, err error) + func (r *Client) SendMsgOnEvent(options interface{}) (info SendMsgOnEventSchema, err error) + func (r *Client) ServiceStateGet(options ServiceStateGetOptions) (info ServiceStateGetSchema, err error) + func (r *Client) ServiceStateTrans(options ServiceStateTransOptions) (info ServiceStateTransSchema, err error) + func (r *Client) SyncMsg(options SyncMsgOptions) (info SyncMsgSchema, err error) + func (r *Client) UpgradeGroupChatService(options UpgradeServiceGroupChatOptions) (info util.CommonError, err error) + func (r *Client) UpgradeMemberService(options UpgradeMemberServiceOptions) (info util.CommonError, err error) + func (r *Client) UpgradeService(options UpgradeServiceOptions) (info util.CommonError, err error) + func (r *Client) UpgradeServiceCancel(options UpgradeServiceCancelOptions) (info util.CommonError, err error) + func (r *Client) UpgradeServiceConfig() (info UpgradeServiceConfigSchema, err error) + func (r *Client) VerifyURL(options SignatureOptions) (string, error) + type CorpQualificationSchema struct + WechatChannelsBinding bool + type CorpStatistic struct + AiKnowledgeHitRate float64 + AiSessionReplyCnt int64 + AiTransferRate float64 + CustomerCnt int64 + CustomerMsgCnt int64 + MsgRejectedCustomerCnt int64 + SessionCnt int64 + UpgradeServiceCustomerCnt int64 + type CorpStatisticList struct + StatTime int64 + Statistic CorpStatistic + type CustomerBatchGetOptions struct + ExternalUserIDList []string + type CustomerBatchGetSchema struct + CustomerList []CustomerSchema + InvalidExternalUserID []string + type CustomerSchema struct + Avatar string + ExternalUserID string + Gender int + NickName string + UnionID string + type DelKnowledgeGroupRequest struct + GroupID string + type DelKnowledgeIntentRequest struct + IntentID string + type Error string + const SDKAccessTokenExpired + const SDKAccessTokenInvalid + const SDKAccessTokenMissing + const SDKApiForbidden + const SDKApiFreqOutOfLimit + const SDKApiNotOpen + const SDKCacheUnavailable + const SDKContentContainsSensitiveInformation + const SDKDecryptMSGFailed + const SDKInitFailed + const SDKInvalidCorpID + const SDKInvalidCredential + const SDKInvalidImageSize + const SDKInvalidOpenKFID + const SDKMediaIDExceedMinLength + const SDKNotUseInWeCom + const SDKOpenKFIDNotExist + const SDKUnknownError + const SDKValidateSignatureFailed + const SDKWeWorkAlready + func (r Error) Error() string + type GetCorpStatisticRequest struct + EndTime int64 + OpenKfID string + StartTime int64 + type GetCorpStatisticResponse struct + StatisticList []CorpStatisticList + type GetServicerStatisticRequest struct + EndTime int64 + OpenKfID string + ServicerUserID string + StartTime int64 + type GetServicerStatisticResponse struct + StatisticList []ServicerStatisticList + type IntentAnswerAttachmentImgReq struct + MediaID string + type IntentAnswerAttachmentImgRes struct + Name string + type IntentAnswerAttachmentLink struct + Desc string + PicURL string + Title string + URL string + type IntentAnswerAttachmentMiniProgramReq struct + AppID string + PagePath string + ThumbMediaID string + Title string + type IntentAnswerAttachmentMiniProgramRes struct + AppID string + PagePath string + Title string + type IntentAnswerAttachmentReq struct + Image IntentAnswerAttachmentImgReq + Link IntentAnswerAttachmentLink + MiniProgram IntentAnswerAttachmentMiniProgramReq + MsgType string + Video IntentAnswerAttachmentVideoReq + type IntentAnswerAttachmentRes struct + Image IntentAnswerAttachmentImgRes + Link IntentAnswerAttachmentLink + MiniProgram IntentAnswerAttachmentMiniProgramRes + MsgType string + Video IntentAnswerAttachmentVideoRes + type IntentAnswerAttachmentVideoReq struct + MediaID string + type IntentAnswerAttachmentVideoRes struct + Name string + type IntentAnswerReq struct + Attachments []IntentAnswerAttachmentReq + Text IntentAnswerText + type IntentAnswerRes struct + Attachments []IntentAnswerAttachmentRes + Text IntentAnswerText + type IntentAnswerText struct + Content string + type IntentQuestion struct + Text IntentQuestionText + type IntentQuestionText struct + Content string + type IntentSimilarQuestions struct + Items []IntentQuestion + type KnowledgeGroup struct + GroupID string + IsDefault int + Name string + type KnowledgeIntent struct + Answers []IntentAnswerRes + GroupID string + IntentID string + Question IntentQuestion + SimilarQuestions IntentSimilarQuestions + type ListKnowledgeGroupRequest struct + Cursor string + GroupID string + Limit int + type ListKnowledgeGroupResponse struct + GroupList []KnowledgeGroup + HasMore int + NextCursor string + type ListKnowledgeIntentRequest struct + Cursor string + GroupID string + IntentID string + Limit int + type ListKnowledgeIntentResponse struct + HasMore int + IntentList []KnowledgeIntent + NextCursor string + type ModKnowledgeGroupRequest struct + GroupID string + Name string + type ModKnowledgeIntentRequest struct + Answers []IntentAnswerReq + IntentID string + Question IntentQuestion + SimilarQuestions IntentSimilarQuestions + type ReceptionistListSchema struct + ReceptionistList []struct{ ... } + type ReceptionistOptions struct + OpenKFID string + UserIDList []string + type ReceptionistSchema struct + ResultList []struct{ ... } + type SendMsgOnEventSchema struct + MsgID string + type SendMsgSchema struct + MsgID string + type ServiceStateGetOptions struct + ExternalUserID string + OpenKFID string + type ServiceStateGetSchema struct + ServiceState int + ServiceUserID string + type ServiceStateTransOptions struct + ExternalUserID string + OpenKFID string + ServiceState int + ServicerUserID string + type ServiceStateTransSchema struct + MsgCode string + type ServicerStatistic struct + CustomerCnt int64 + CustomerMsgCnt int64 + DissatisfiedRate float64 + FirstReplyAverageSec float64 + MiddlingRate float64 + MsgRejectedCustomerCnt int64 + ReplyRate float64 + SatisfactionInvestgateCnt int64 + SatisfactionParticipationRate float64 + SatisfiedRate float64 + SessionCnt int64 + UpgradeServiceCustomerCnt int64 + UpgradeServiceGroupChatCustomerCnt int64 + UpgradeServiceGroupChatInviteCnt int64 + UpgradeServiceMemberCustomerCnt int64 + UpgradeServiceMemberInviteCnt int64 + type ServicerStatisticList struct + StatTime int64 + Statistic ServicerStatistic + type SignatureOptions struct + EchoStr string + Nonce string + Signature string + TimeStamp string + type SyncMsgOptions struct + Cursor string + Limit uint + OpenKfID string + Token string + VoiceFormat uint + type SyncMsgSchema struct + ErrCode int32 + ErrMsg string + HasMore uint32 + MsgList []syncmsg.Message + NextCursor string + type UpgradeMemberServiceOptions struct + ExternalUserID string + Member struct{ ... } + OpenKFID string + Type int + type UpgradeServiceCancelOptions struct + ExternalUserID string + OpenKFID string + type UpgradeServiceConfigSchema struct + GroupChatRange struct{ ... } + MemberRange struct{ ... } + type UpgradeServiceGroupChatOptions struct + ExternalUserID string + GroupChat struct{ ... } + OpenKFID string + Type int + type UpgradeServiceOptions struct + ExternalUserID string + GroupChat struct{ ... } + Member struct{ ... } + OpenKFID string + Type int