officialaccount

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

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(ctx context.Context) (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

func (officialAccount *OfficialAccount) PlatformJs() *js.Js

PlatformJs 平台代获取js-sdk配置

func (*OfficialAccount) PlatformOauth

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