liff

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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddLiffAppRequest

type AddLiffAppRequest struct {

	/**
	 * Get View
	 */
	View *LiffView `json:"view"`

	/**
	 * Name of the LIFF app.  The LIFF app name can't include \"LINE\" or similar strings, or inappropriate strings.
	 */
	Description string `json:"description,omitempty"`

	/**
	 * Get Features
	 */
	Features *LiffFeatures `json:"features,omitempty"`

	/**
	 * How additional information in LIFF URLs is handled. Specify `concat`.
	 */
	PermanentLinkPattern string `json:"permanentLinkPattern,omitempty"`

	/**
	 * Get Scope
	 */
	Scope []LiffScope `json:"scope,omitempty"`

	/**
	 * Get BotPrompt
	 */
	BotPrompt LiffBotPrompt `json:"botPrompt,omitempty"`
}

AddLiffAppRequest AddLiffAppRequest https://developers.line.biz/en/reference/liff-server/#add-liff-app

type AddLiffAppResponse

type AddLiffAppResponse struct {

	/**
	 * Get LiffId
	 */
	LiffId string `json:"liffId"`
}

type GetAllLiffAppsResponse

type GetAllLiffAppsResponse struct {

	/**
	 * Get Apps
	 */
	Apps []LiffApp `json:"apps,omitempty"`
}

type LiffAPI

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

func NewLiffAPI

func NewLiffAPI(channelToken string, options ...LiffAPIOption) (*LiffAPI, error)

New returns a new bot client instance.

func (*LiffAPI) DeleteLIFFApp

func (client *LiffAPI) DeleteLIFFApp(

	liffId string,

) (struct{}, error)

https://developers.line.biz/en/reference/liff-server/#delete-liff-app

func (*LiffAPI) DeleteLIFFAppWithHttpInfo

func (client *LiffAPI) DeleteLIFFAppWithHttpInfo(

	liffId string,

) (*http.Response, struct{}, error)

https://developers.line.biz/en/reference/liff-server/#delete-liff-app

func (*LiffAPI) Do

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

func (*LiffAPI) UpdateLIFFApp

func (client *LiffAPI) UpdateLIFFApp(

	liffId string,

	updateLiffAppRequest *UpdateLiffAppRequest,

) (struct{}, error)

https://developers.line.biz/en/reference/liff-server/#update-liff-app

func (*LiffAPI) UpdateLIFFAppWithHttpInfo

func (client *LiffAPI) UpdateLIFFAppWithHttpInfo(

	liffId string,

	updateLiffAppRequest *UpdateLiffAppRequest,

) (*http.Response, struct{}, error)

https://developers.line.biz/en/reference/liff-server/#update-liff-app

func (*LiffAPI) Url

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

func (*LiffAPI) WithContext

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

WithContext method

type LiffAPIOption

type LiffAPIOption func(*LiffAPI) error

LiffAPIOption type

func WithEndpoint

func WithEndpoint(endpoint string) LiffAPIOption

WithEndpointClient function

func WithHTTPClient

func WithHTTPClient(c *http.Client) LiffAPIOption

WithHTTPClient function

type LiffApp

type LiffApp struct {

	/**
	 * LIFF app ID
	 */
	LiffId string `json:"liffId,omitempty"`

	/**
	 * Get View
	 */
	View *LiffView `json:"view,omitempty"`

	/**
	 * Name of the LIFF app
	 */
	Description string `json:"description,omitempty"`

	/**
	 * Get Features
	 */
	Features *LiffFeatures `json:"features,omitempty"`

	/**
	 * How additional information in LIFF URLs is handled. concat is returned.
	 */
	PermanentLinkPattern string `json:"permanentLinkPattern,omitempty"`

	/**
	 * Get Scope
	 */
	Scope []LiffScope `json:"scope,omitempty"`

	/**
	 * Get BotPrompt
	 */
	BotPrompt LiffBotPrompt `json:"botPrompt,omitempty"`
}

type LiffBotPrompt

type LiffBotPrompt string

LiffBotPrompt type

const (
	LiffBotPrompt_NORMAL LiffBotPrompt = "normal"

	LiffBotPrompt_AGGRESSIVE LiffBotPrompt = "aggressive"

	LiffBotPrompt_NONE LiffBotPrompt = "none"
)

LiffBotPrompt constants

type LiffFeatures

type LiffFeatures struct {

	/**
	 * `true` if the LIFF app supports Bluetooth® Low Energy for LINE Things. `false` otherwise.
	 */
	Ble bool `json:"ble"`

	/**
	 * `true` to use the 2D code reader in the LIFF app. false otherwise. The default value is `false`.
	 */
	QrCode bool `json:"qrCode"`
}

type LiffScope

type LiffScope string

LiffScope type

const (
	LiffScope_OPENID LiffScope = "openid"

	LiffScope_EMAIL LiffScope = "email"

	LiffScope_PROFILE LiffScope = "profile"

	LiffScope_CHAT_MESSAGE_WRITE LiffScope = "chat_message.write"
)

LiffScope constants

type LiffView

type LiffView struct {

	/**
	 * Size of the LIFF app view. Specify one of these values: - compact - tall - full  (Required)
	 */
	Type LiffViewTYPE `json:"type"`

	/**
	 * Endpoint URL. This is the URL of the web app that implements the LIFF app (e.g. https://example.com). Used when the LIFF app is launched using the LIFF URL. The URL scheme must be https. URL fragments (#URL-fragment) can't be specified.  (Required)
	 */
	Url string `json:"url"`

	/**
	 * `true` to use the LIFF app in modular mode. When in modular mode, the action button in the header is not displayed.
	 */
	ModuleMode bool `json:"moduleMode"`
}

LiffView LiffView https://developers.line.biz/en/reference/liff-server/#add-liff-app

type LiffViewTYPE

type LiffViewTYPE string

LiffViewTYPE type

Size of the LIFF app view. Specify one of these values: - compact - tall - full
const (
	LiffViewTYPE_COMPACT LiffViewTYPE = "compact"

	LiffViewTYPE_TALL LiffViewTYPE = "tall"

	LiffViewTYPE_FULL LiffViewTYPE = "full"
)

LiffViewTYPE constants

type UpdateLiffAppRequest

type UpdateLiffAppRequest struct {

	/**
	 * Get View
	 */
	View *LiffView `json:"view,omitempty"`

	/**
	 * Name of the LIFF app.  The LIFF app name can't include \"LINE\" or similar strings, or inappropriate strings.
	 */
	Description string `json:"description,omitempty"`

	/**
	 * Get Features
	 */
	Features *LiffFeatures `json:"features,omitempty"`

	/**
	 * How additional information in LIFF URLs is handled. Specify `concat`.
	 */
	PermanentLinkPattern string `json:"permanentLinkPattern,omitempty"`

	/**
	 * Get Scope
	 */
	Scope []LiffScope `json:"scope,omitempty"`

	/**
	 * Get BotPrompt
	 */
	BotPrompt LiffBotPrompt `json:"botPrompt,omitempty"`
}

UpdateLiffAppRequest UpdateLiffAppRequest https://developers.line.biz/en/reference/liff-server/#add-liff-app

Jump to

Keyboard shortcuts

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