Documentation ¶
Index ¶
- type Client
- func (comp *Client) ExternalTagIDToOpenExternalTagID(ctx context.Context, externalTagIDList []string) (*response.ResponseExternalTagIDToOpenExternalTagID, error)
- func (comp *Client) ExternalUserIDToPendingID(ctx context.Context, externalUserID []string, chatID string) ([]response.ExternalUserIDToPendingIDResult, error)
- func (comp *Client) OpenUserIDToUserID(ctx context.Context, sourceAgentID int, openUserIDList []string) (*response.ResponseOpenUserIDToUserID, error)
- func (comp *Client) UnionIDToExternalUserID(ctx context.Context, unionID string, openID string, subjectType int) (*response.ResponseUnionIDToExternalUserID, error)
- func (comp *Client) UserIDToOpenUserID(ctx context.Context, userIDList []string) ([]response.UserIDToOpenUserIDResult, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
BaseClient *kernel.BaseClient
}
func RegisterProvider ¶
func RegisterProvider(app kernel.ApplicationInterface) (*Client, error)
func (*Client) ExternalTagIDToOpenExternalTagID ¶
func (comp *Client) ExternalTagIDToOpenExternalTagID(ctx context.Context, externalTagIDList []string) (*response.ResponseExternalTagIDToOpenExternalTagID, error)
客户标签ID的转换 https://developer.work.weixin.qq.com/document/path/96169
func (*Client) ExternalUserIDToPendingID ¶
func (comp *Client) ExternalUserIDToPendingID(ctx context.Context, externalUserID []string, chatID string) ([]response.ExternalUserIDToPendingIDResult, error)
external_userid查询pending_id 该接口可用于当一个微信用户成为企业客户前已经使用过服务商服务(服务商曾通过unionid查询external_userid接口获取到pending_id)的场景。本接口获取到的pending_id可以维持unionid和external_userid的关联关系。pending_id有效期为90天,超过有效期之后,将无法通过该接口将external_userid换取对应的pending_id。
func (*Client) OpenUserIDToUserID ¶
func (comp *Client) OpenUserIDToUserID(ctx context.Context, sourceAgentID int, openUserIDList []string) (*response.ResponseOpenUserIDToUserID, error)
userid的转换 https://developer.work.weixin.qq.com/document/path/97062
func (*Client) UnionIDToExternalUserID ¶
func (comp *Client) UnionIDToExternalUserID(ctx context.Context, unionID string, openID string, subjectType int) (*response.ResponseUnionIDToExternalUserID, error)
unionid转换为第三方external_userid https://developer.work.weixin.qq.com/document/path/95900#unionid%E8%BD%AC%E6%8D%A2%E4%B8%BA%E7%AC%AC%E4%B8%89%E6%96%B9external-userid
func (*Client) UserIDToOpenUserID ¶
func (comp *Client) UserIDToOpenUserID(ctx context.Context, userIDList []string) ([]response.UserIDToOpenUserIDResult, error)
userid的转换 https://developer.work.weixin.qq.com/document/path/97062
Click to show internal directories.
Click to hide internal directories.