Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDefaultAuthrAccessToken ¶
func NewDefaultAuthrAccessToken(opCtx *opContext.Context, appID string) credential.AccessTokenHandle
NewDefaultAuthrAccessToken New
Types ¶
type DefaultAuthrAccessToken ¶
type DefaultAuthrAccessToken struct {
// contains filtered or unexported fields
}
DefaultAuthrAccessToken 默认获取授权ak的方法
func (*DefaultAuthrAccessToken) GetAccessToken ¶
func (ak *DefaultAuthrAccessToken) GetAccessToken() (string, error)
GetAccessToken 获取ak
type OfficialAccount ¶
type OfficialAccount struct { *officialaccount.OfficialAccount // contains filtered or unexported fields }
OfficialAccount 代公众号实现业务
func NewOfficialAccount ¶
func NewOfficialAccount(opCtx *opContext.Context, appID string) *OfficialAccount
NewOfficialAccount 实例化 appID :为授权方公众号 APPID,非开放平台第三方平台 APPID
func (*OfficialAccount) PlatformJs ¶ added in v2.0.2
func (officialAccount *OfficialAccount) PlatformJs() *js.Js
PlatformJs 平台代获取js-sdk配置
func (*OfficialAccount) PlatformOauth ¶ added in v2.0.2
func (officialAccount *OfficialAccount) PlatformOauth() *oauth.Oauth
PlatformOauth 平台代发起oauth2网页授权
Click to show internal directories.
Click to hide internal directories.