Documentation
¶
Index ¶
- Variables
- type Client
- func (c *Client) Notify(token, message, imageThumbnail, imageFullsize string, image io.Reader) (*NotifyResponse, error)
- func (c *Client) NotifyMessage(token, message string) (*NotifyResponse, error)
- func (c *Client) NotifyWithImage(token, message string, image io.Reader) (*NotifyResponse, error)
- func (c *Client) NotifyWithImageURL(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(token, message, imageThumbnail, imageFullsize string, image io.Reader) (*NotifyResponse, error)
Notify provides convenient Notify* interface
func (*Client) NotifyMessage ¶ added in v0.4.2
func (c *Client) NotifyMessage(token, message string) (*NotifyResponse, error)
NotifyMessage notify text message
func (*Client) NotifyWithImage ¶
NotifyWithImage notify text message and image by binary
func (*Client) NotifyWithImageURL ¶
func (c *Client) NotifyWithImageURL(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.