Documentation ¶
Index ¶
- func RegisterProvider(app kernel.ApplicationInterface) (*SuiteTicket, *AccessToken, error)
- type AccessToken
- type Client
- func (comp *Client) GetAuthInfo(ctx context.Context, authCorpID string, permanentCode string) (*response.GetPermanentCodeResponse, error)
- func (comp *Client) GetPermanentCode(ctx context.Context, authCode string) (*response.GetPermanentCodeResponse, error)
- func (comp *Client) GetPreAuthCode(ctx context.Context) (*response.PreAuthCode, error)
- func (comp *Client) SetSessionInfo(ctx context.Context, req *request.SetSessionInfoRequest) error
- func (comp *Client) UserIDToOpenUserID(ctx context.Context, userIDList []string) ([]response.UserIDToOpenUserIDResult, error)
- type SuiteTicket
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterProvider ¶
func RegisterProvider(app kernel.ApplicationInterface) (*SuiteTicket, *AccessToken, error)
Types ¶
type AccessToken ¶
type AccessToken struct {
*kernel.AccessToken
}
func NewAccessToken ¶
func NewAccessToken(app kernel.ApplicationInterface) (*AccessToken, error)
func (*AccessToken) OverrideGetCredentials ¶
func (accessToken *AccessToken) OverrideGetCredentials()
Override GetCredentials
type Client ¶ added in v3.2.0
type Client struct {
BaseClient *kernel.BaseClient
}
func (*Client) GetAuthInfo ¶ added in v3.2.0
func (*Client) GetPermanentCode ¶ added in v3.2.0
func (*Client) GetPreAuthCode ¶ added in v3.2.0
func (*Client) SetSessionInfo ¶ added in v3.2.0
func (*Client) UserIDToOpenUserID ¶ added in v3.2.0
func (comp *Client) UserIDToOpenUserID(ctx context.Context, userIDList []string) ([]response.UserIDToOpenUserIDResult, error)
userid的转换 https://developer.work.weixin.qq.com/document/path/97062
type SuiteTicket ¶
type SuiteTicket struct { App kernel.ApplicationInterface *kernel.InteractsWithCache }
func NewSuiteTicket ¶
func NewSuiteTicket(app kernel.ApplicationInterface) (*SuiteTicket, error)
func (*SuiteTicket) GetTicket ¶
func (verifyTicket *SuiteTicket) GetTicket() (ticket string, err error)
func (*SuiteTicket) SetTicket ¶
func (verifyTicket *SuiteTicket) SetTicket(ticket string) (err error)
Click to show internal directories.
Click to hide internal directories.