package
2.1.8-rc.1
Repository: https://github.com/silenceper/wechat.git
Documentation: pkg.go.dev

# README

微信客服SDK

相关文档正在梳理中...

# Packages

# Functions

NewClient 初始化微信客服实例.
NewSDKErr 初始化SDK实例错误信息.

# Constants

SDKAccessTokenExpired 错误码:42001.
SDKAccessTokenInvalid 错误码:40014.
SDKAccessTokenMissing 错误码:41001.
SDKApiForbidden 错误码:48002.
SDKApiFreqOutOfLimit 错误码:45009.
SDKApiNotOpen 错误码:95017.
SDKCacheUnavailable 错误码:50002.
SDKContentContainsSensitiveInformation 错误码:40201.
SDKDecryptMSGFailed 错误码:40016.
SDKInitFailed 错误码:50001.
SDKInvalidCorpID 错误码:40013.
SDKInvalidCredential 错误码:40001.
SDKInvalidImageSize 错误码:40009.
SDKInvalidOpenKFID 错误码:95000.
SDKMediaIDExceedMinLength 错误码:40058.
SDKNotUseInWeCom 错误码:95012.
SDKOpenKFIDNotExist 错误码:95004.
SDKUnknownError 错误码:50003.
SDKValidateSignatureFailed 错误码:40015.
SDKWeWorkAlready 错误码:95011.

# Structs

AccountAddOptions 添加客服账号请求参数.
AccountAddSchema 添加客服账号响应内容.
AccountDelOptions 删除客服账号请求参数.
AccountInfoSchema 客服详情.
AccountListSchema 获取客服账号列表响应内容.
AccountPagingRequest 分页获取客服账号列表请求.
AccountUpdateOptions 修改客服账号请求参数.
AddContactWayOptions 获取客服账号链接 1.若scene非空,返回的客服链接开发者可拼接scene_param=SCENE_PARAM参数使用,用户进入会话事件会将SCENE_PARAM原样返回。其中SCENE_PARAM需要urlencode,且长度不能超过128字节。 如 https://work.weixin.qq.com/kf/kfcbf8f8d07ac7215f?enc_scene=ENCGFSDF567DF&scene_param=a%3D1%26b%3D2 2.历史调用接口返回的客服链接(包含encScene=XXX参数),不支持scene_param参数。 3.返回的客服链接,不能修改或复制参数到其他链接使用。否则进入会话事件参数校验不通过,导致无法回调。.
AddContactWaySchema 获取客服账号链接响应内容.
AddKnowledgeGroupRequest 知识库分组添加请求.
AddKnowledgeGroupResponse 知识库分组添加响应.
AddKnowledgeIntentRequest 知识库问答添加请求.
AddKnowledgeIntentResponse 知识库问答添加响应.
CallbackMessage 微信客服回调消息.
Client 微信客服实例.
CorpQualificationSchema 获取视频号绑定状态响应内容.
CorpStatistic 企业汇总统计一天的统计数据.
CorpStatisticList 企业汇总统计数据列表.
CustomerBatchGetOptions 客户基本信息获取请求参数.
CustomerBatchGetSchema 获取客户基本信息响应内容.
CustomerSchema 微信客户基本资料.
DelKnowledgeGroupRequest 知识库分组删除请求.
DelKnowledgeIntentRequest 知识库问答删除请求.
GetCorpStatisticRequest 获取「客户数据统计」企业汇总数据请求.
GetCorpStatisticResponse 获取「客户数据统计」企业汇总数据响应.
GetServicerStatisticRequest 获取「客户数据统计」接待人员明细数据请求.
GetServicerStatisticResponse 获取「客户数据统计」接待人员明细数据响应.
IntentAnswerAttachmentImgReq 图片类型回答附件请求.
IntentAnswerAttachmentImgRes 图片类型回答附件返回.
IntentAnswerAttachmentLink 链接类型回答附件.
IntentAnswerAttachmentMiniProgramReq 小程序类型回答附件请求.
IntentAnswerAttachmentMiniProgramRes 小程序类型回答附件返回.
IntentAnswerAttachmentReq 回答附件请求.
IntentAnswerAttachmentRes 回答附件返回.
IntentAnswerAttachmentVideoReq 视频类型回答附件请求.
IntentAnswerAttachmentVideoRes 视频类型回答附件返回.
IntentAnswerReq 回答请求.
IntentAnswerRes 回答返回.
IntentAnswerText 回答文本.
IntentQuestion 主问题.
IntentQuestionText 问题文本.
IntentSimilarQuestions 相似问题.
KnowledgeGroup 知识库分组.
KnowledgeIntent 问答摘要.
ListKnowledgeGroupRequest 知识库分组列表请求.
ListKnowledgeGroupResponse 知识库分组列表响应.
ListKnowledgeIntentRequest 知识库问答列表请求.
ListKnowledgeIntentResponse 知识库问答列表响应.
ModKnowledgeGroupRequest 知识库分组修改请求.
ModKnowledgeIntentRequest 知识库问答修改请求.
ReceptionistListSchema 获取接待人员列表响应内容.
ReceptionistOptions 添加接待人员请求参数.
ReceptionistSchema 添加接待人员响应内容.
SendMsgOnEventSchema 发送事件响应消息.
SendMsgSchema 发送消息响应内容.
ServicerStatistic 接待人员明细统计一天的统计数据.
ServicerStatisticList 接待人员明细统计数据列表.
ServiceStateGetOptions 获取会话状态请求参数.
ServiceStateGetSchema 获取会话状态响应内容.
ServiceStateTransOptions 变更会话状态请求参数.
ServiceStateTransSchema 变更会话状态响应内容.
SignatureOptions 微信服务器验证参数.
SyncMsgOptions 获取消息查询参数.
SyncMsgSchema 获取消息查询响应内容.
UpgradeMemberServiceOptions 为客户升级为专员服务请求参数.
UpgradeServiceCancelOptions 为客户取消推荐.
UpgradeServiceConfigSchema 获取配置的专员与客户群.
UpgradeServiceGroupChatOptions 为客户升级为客户群服务请求参数.
UpgradeServiceOptions 为客户升级为专员或客户群服务请求参数.

# Type aliases

Error 错误.