Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client Client
func (*Client) CodeToAccessToken ¶
func (c *Client) CodeToAccessToken(code string) (accessData *QuickAppAccessToken, err error)
CodeToAccessToken 根据code值换行accessToken
func (*Client) RefreshTokenToAccessToken ¶
func (c *Client) RefreshTokenToAccessToken(refreshToken string) (accessData *QuickAppAccessToken, err error)
用refreshToken换accessToken
type QuickAppAccessToken ¶
type QuickAppAccessToken struct { AccessToken string `json:"access_token"` ExpiresIn int `json:"expires_in"` RefreshToken string `json:"refresh_token"` Scope string `json:"scope"` TokenType int64 `json:"token_type"` Error string `json:"error"` ErrDescription string `json:"error_description"` }
华为accesstoken应答参数
Click to show internal directories.
Click to hide internal directories.