line

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2025 License: MPL-2.0 Imports: 18 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateJWKPair

func GenerateJWKPair() (string, string, error)

Types

type Client

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

func New

func New(cfg Config) (*Client, error)

func NewFromAccessToken

func NewFromAccessToken(token string) (*Client, error)

func (*Client) GenerateJWTFromJWK

func (s *Client) GenerateJWTFromJWK(jwkJSON string, kid string) (string, error)

func (*Client) GenerateToken

func (s *Client) GenerateToken() (string, *time.Time, error)

func (*Client) GetContent

func (s *Client) GetContent(messageID string) ([]byte, error)

func (*Client) ReplyTextMessage

func (s *Client) ReplyTextMessage(replyToken, quoteToken string, text string) (*messaging_api.ReplyMessageResponse, error)

func (*Client) SendBroadcaseMessage added in v0.0.4

func (s *Client) SendBroadcaseMessage(ctx context.Context, title, summary, coverUrl, url, actionLabel string) error

func (*Client) SendPushMessage

func (s *Client) SendPushMessage(ctx context.Context, groupID, title, summary, url string) error

type Config

type Config struct {
	ChannelID  string
	ChannelKey string
	PrivateKey string
}

Jump to

Keyboard shortcuts

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