Documentation
¶
Index ¶
- Variables
- func IsErrorInvalidCode(err error) bool
- type App
- func (a *App) AccessToken() (string, error)
- func (a *App) ClientCredentialBuilder() fetcher.Command
- func (a *App) GetAccessToken() (string, error)
- func (a *App) GrantAccessToken() (string, error)
- func (a *App) Login(code string) (*ResultUserInfo, error)
- func (a *App) SetAccessTokenCreator(f func() (string, error))
- func (a *App) SetAccessTokenGetter(f func() (string, error))
- type ResultAPIError
- type ResultUserInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var APIToken = Server.EndPoint("GET", "/cgi-bin/token")
View Source
var Server = fetcher.Concat( fetcher.URL("https://api.weixin.qq.com"), )
Functions ¶
func IsErrorInvalidCode ¶
Types ¶
type App ¶
type App struct { AppID string AppSecret string Client fetcher.Client // contains filtered or unexported fields }
func (*App) AccessToken ¶
func (*App) ClientCredentialBuilder ¶
func (*App) GetAccessToken ¶
func (*App) GrantAccessToken ¶
func (*App) SetAccessTokenCreator ¶
func (*App) SetAccessTokenGetter ¶
type ResultAPIError ¶
Click to show internal directories.
Click to hide internal directories.