create_token_request

package
v1.4.12 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAccessToken

func GetAccessToken(param *GetAccessTokenParam) (string, error)

func GetAccessTokenWithContext added in v1.3.42

func GetAccessTokenWithContext(ctx context.Context, param *GetAccessTokenParam) (string, error)

Types

type CreateTokenParam

type CreateTokenParam struct {
	AppId     string `json:"app_id"`
	AppSecret string `json:"app_secret"`
}

type CreateTokenRequest

type CreateTokenRequest struct {
	core.BaseTkApiRequest
	// contains filtered or unexported fields
}

func NewCreateTokenRequest

func NewCreateTokenRequest() *CreateTokenRequest

func (*CreateTokenRequest) Execute

func (*CreateTokenRequest) ExecuteWithContext added in v1.3.42

func (r *CreateTokenRequest) ExecuteWithContext(ctx context.Context, accessToken string) (*create_token_response.CreateTokenResponse, error)

func (*CreateTokenRequest) GetParamObject

func (r *CreateTokenRequest) GetParamObject() interface{}

func (*CreateTokenRequest) GetParams

func (r *CreateTokenRequest) GetParams() *CreateTokenParam

func (*CreateTokenRequest) GetUrlPath

func (r *CreateTokenRequest) GetUrlPath() string

type GetAccessTokenParam

type GetAccessTokenParam struct {
	Config    *core.TkConfig
	AppId     string
	AppSecret string
}

Jump to

Keyboard shortcuts

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