module_attach

package
v8.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttachModuleResponse

type AttachModuleResponse struct {

	/**
	 * User ID of the bot on the LINE Official Account. (Required)
	 */
	BotId string `json:"bot_id"`

	/**
	 * Permissions (scope) granted by the LINE Official Account admin. (Required)
	 */
	Scopes []string `json:"scopes"`
}

type LineModuleAttachAPI

type LineModuleAttachAPI struct {
	// contains filtered or unexported fields
}

func NewLineModuleAttachAPI

func NewLineModuleAttachAPI(channelToken string, options ...LineModuleAttachAPIOption) (*LineModuleAttachAPI, error)

New returns a new bot client instance.

func (*LineModuleAttachAPI) AttachModule

func (client *LineModuleAttachAPI) AttachModule(

	grantType string,

	code string,

	redirectUri string,

	codeVerifier string,

	clientId string,

	clientSecret string,

	region string,

	basicSearchId string,

	scope string,

	brandType string,

) (*AttachModuleResponse, error)

https://developers.line.biz/en/reference/partner-docs/#link-attach-by-operation-module-channel-provider

func (*LineModuleAttachAPI) AttachModuleWithHttpInfo

func (client *LineModuleAttachAPI) AttachModuleWithHttpInfo(

	grantType string,

	code string,

	redirectUri string,

	codeVerifier string,

	clientId string,

	clientSecret string,

	region string,

	basicSearchId string,

	scope string,

	brandType string,

) (*http.Response, *AttachModuleResponse, error)

https://developers.line.biz/en/reference/partner-docs/#link-attach-by-operation-module-channel-provider

func (*LineModuleAttachAPI) Do

func (client *LineModuleAttachAPI) Do(req *http.Request) (*http.Response, error)

func (*LineModuleAttachAPI) Url

func (client *LineModuleAttachAPI) Url(endpointPath string) string

func (*LineModuleAttachAPI) WithContext

func (call *LineModuleAttachAPI) WithContext(ctx context.Context) *LineModuleAttachAPI

WithContext method

type LineModuleAttachAPIOption

type LineModuleAttachAPIOption func(*LineModuleAttachAPI) error

LineModuleAttachAPIOption type

func WithEndpoint

func WithEndpoint(endpoint string) LineModuleAttachAPIOption

WithEndpointClient function

func WithHTTPClient

func WithHTTPClient(c *http.Client) LineModuleAttachAPIOption

WithHTTPClient function

Jump to

Keyboard shortcuts

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