Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AInfo ¶
type AInfo struct { Authorization FuncInfo }
type AccessToken ¶
type AccessToken struct { AuthorizerAppId string `json:"authorizer_appid,omitempty"` AcsToken string `json:"authorizer_access_token"` ExpireIn int64 `json:"expires_in"` RefToken string `json:"authorizer_refresh_token"` RefExpireIn int64 `json:"authorizer_refresh_expires_in,omitempty"` }
func (AccessToken) GetAccessToken ¶
func (a AccessToken) GetAccessToken() access.Value
access.Token interface implement
func (AccessToken) GetRefAccessToken ¶
func (a AccessToken) GetRefAccessToken() access.Value
type Authorization ¶
type AuthorizationInfo ¶
type AuthorizationInfo struct {
Info AInfo `json:"authorization_info"`
}
func (AuthorizationInfo) GetAccessToken ¶
func (a AuthorizationInfo) GetAccessToken() access.Value
access.Token interface implement
func (AuthorizationInfo) GetRefAccessToken ¶
func (a AuthorizationInfo) GetRefAccessToken() access.Value
type ListAuthInfo ¶
func GetAuthorizerList ¶
func GetAuthorizerList(api *api.Api, offset, count int) (*ListAuthInfo, error)
type PreAuthCode ¶
func GetPerAuthCode ¶
func GetPerAuthCode(api *api.Api) (*PreAuthCode, error)
预授权码(pre_auth_code)是第三方平台方实现授权托管的必备信息,每个预授权码有效期为 10 分钟。需要先获取令牌才能调用。
Click to show internal directories.
Click to hide internal directories.