Documentation
¶
Index ¶
- func ClearQuota(api *token.Api) error
- func GetAccessToken(tk token.Token, d data.D) (access.Token, error)
- func GetComponentAccessToken(tk token.Token, d data.D) (access.Token, error)
- func GetIdService() token.Service
- func GetService() token.Service
- func GetWebService() token.Service
- func NewIdToken(app token.App) token.Token
- func NewToken(app token.App) token.Token
- func NewWebToken(app token.App) token.Token
- type AccessToken
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearQuota ¶
ClearQuota 所有api调用(包括第三方帮其调用)次数进行清零,每月10次 https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/Official_Accounts/Official_account_interface.html
func GetAccessToken ¶
GetAccessToken https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/api/component_access_token.html
func GetComponentAccessToken ¶
func GetIdService ¶ added in v1.0.29
func GetService ¶ added in v1.0.29
func GetWebService ¶ added in v1.0.29
Types ¶
type AccessToken ¶
type AccessToken struct { Token string `json:"component_access_token"` ExpiresIn int64 `json:"expires_in"` }
func (AccessToken) GetAccessToken ¶
func (a AccessToken) GetAccessToken() access.Value
access.Token interface implement
func (AccessToken) GetRefAccessToken ¶
func (a AccessToken) GetRefAccessToken() access.Value
Click to show internal directories.
Click to hide internal directories.