Documentation ¶
Index ¶
- Variables
- type Client
- func (c *Client) Notify(ctx context.Context, token, message, imageThumbnail, imageFullsize string, ...) (*NotifyResponse, error)
- func (c *Client) NotifyMessage(ctx context.Context, token, message string) (*NotifyResponse, error)
- func (c *Client) NotifyWithImage(ctx context.Context, token, message string, image io.Reader) (*NotifyResponse, error)
- func (c *Client) NotifyWithImageURL(ctx context.Context, token, message, imageThumbnail, imageFullsize string) (*NotifyResponse, error)
- type NotifyResponse
- type RateLimit
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotifyInvalidAccessToken = errors.New("invalid access token")
)
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client calls LINE Notify API. refs https://notify-bot.line.me/doc/
func (*Client) Notify ¶
func (c *Client) Notify(ctx context.Context, token, message, imageThumbnail, imageFullsize string, image io.Reader) (*NotifyResponse, error)
Notify provides convenient Notify* interface
func (*Client) NotifyMessage ¶ added in v0.4.2
NotifyMessage notify text message
func (*Client) NotifyWithImage ¶
func (c *Client) NotifyWithImage(ctx context.Context, token, message string, image io.Reader) (*NotifyResponse, error)
NotifyWithImage notify text message and image by binary
func (*Client) NotifyWithImageURL ¶
func (c *Client) NotifyWithImageURL(ctx context.Context, token, message, imageThumbnail, imageFullsize string) (*NotifyResponse, error)
NotifyWithImageURL notify text message and image by url
type NotifyResponse ¶
type NotifyResponse struct { Status int `json:"status"` Message string `json:"message"` RateLimit RateLimit }
NotifyResponse represents response that LINE Notify API
Click to show internal directories.
Click to hide internal directories.