Documentation
¶
Index ¶
- func GetAuthrInfo(appid string) (*AuthorizerInfo, *AuthBaseInfo, error)
- func GetBinary(url string) ([]byte, error)
- func GetJson(url string, out interface{}) error
- func GetRefreshToken(appid string) (string, error)
- func PostJson(url string, in interface{}, out interface{}) error
- func RefreshAuthrToken(ctx *openplatform.OpenPlatform, appid, refreshToken string) (*context.AuthrAccessToken, error)
- func SetRefreshToken(appid string, refreshToken string) error
- func SyncAuthrAccessToken(appid string, isForces ...bool) error
- type AuthBaseInfo
- type AuthorizerInfo
- type Category
- type Err
- type MiniProgramInfo
- type Network
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAuthrInfo ¶
func GetAuthrInfo(appid string) (*AuthorizerInfo, *AuthBaseInfo, error)
GetAuthrInfo 获取授权方的帐号基本信息
func GetRefreshToken ¶
func RefreshAuthrToken ¶
func RefreshAuthrToken(ctx *openplatform.OpenPlatform, appid, refreshToken string) (*context.AuthrAccessToken, error)
RefreshAuthrToken 获取(刷新)授权公众号或小程序的接口调用凭据(令牌)
func SetRefreshToken ¶
func SyncAuthrAccessToken ¶
Types ¶
type AuthBaseInfo ¶
type AuthBaseInfo context.AuthBaseInfo
type AuthorizerInfo ¶
type AuthorizerInfo struct { NickName string `json:"nick_name"` HeadImg string `json:"head_img"` ServiceTypeInfo context.ID `json:"service_type_info"` VerifyTypeInfo context.ID `json:"verify_type_info"` UserName string `json:"user_name"` PrincipalName string `json:"principal_name"` BusinessInfo struct { OpenStore string `json:"open_store"` OpenScan string `json:"open_scan"` OpenPay string `json:"open_pay"` OpenCard string `json:"open_card"` OpenShake string `json:"open_shake"` } Alias string `json:"alias"` QrcodeURL string `json:"qrcode_url"` Idc int `json:"idc,omitempty"` Signature string `json:"signature,omitempty"` MiniProgramInfo *MiniProgramInfo `json:"MiniProgramInfo,omitempty"` }
AuthorizerInfo 授权方详细信息
type MiniProgramInfo ¶
Click to show internal directories.
Click to hide internal directories.