officialaccount

package
v2.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2021 License: Apache-2.0 Imports: 6 Imported by: 5

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网页授权

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL