Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCodeIsSuccess int64 = 0
ErrCodeIsSuccess 微信接口请求返回成功
Functions ¶
func GetAccessToken ¶
func GetAccessToken(appId, appSecret string) (data ResponseAccessTokenData, errData ResponseErrorData, err error)
GetAccessToken 获取AccessToken
Types ¶
type ResponseAccessTokenData ¶
type ResponseAccessTokenData struct { AccessToken string `json:"access_token"` ExpiresIn int64 `json:"expires_in"` }
ResponseAccessTokenData 返回access_token数据
type ResponseErrorData ¶
ResponseErrorData 请求返回错误时的数据
Click to show internal directories.
Click to hide internal directories.