Versions in this module Expand all Collapse all v0 v0.0.15 Jul 5, 2023 v0.0.14 Jun 20, 2023 v0.0.13 Jun 20, 2023 v0.0.12 Jun 19, 2023 v0.0.11 Jun 19, 2023 v0.0.10 Apr 27, 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 CallbackMessage struct + CreateTime int + Event string + MsgType 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) CustomerBatchGet(options CustomerBatchGetOptions) (info CustomerBatchGetSchema, err error) + func (r *Client) GetCallbackMessage(encryptedMsg []byte) (msg CallbackMessage, err error) + func (r *Client) GetCorpQualification() (info CorpQualificationSchema, err 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 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 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 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 SignatureOptions struct + EchoStr string + Nonce string + Signature string + TimeStamp string + type SyncMsgOptions struct + Cursor string + Limit uint + Token string + 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