module LineNotifyAPI
Defined in:
line_notify_api.crline_notify_api/client.cr
line_notify_api/version.cr
Constant Summary
-
VERSION =
"0.1.0"
Class Method Summary
-
.notify(token : String, message : String, *, thumbnail : String | Nil = nil, img_file : String | Nil = nil, stk_pkg_id : Int32 | Nil = nil, stk_id : Int32 | Nil = nil, boundary : String = MIME::Multipart.generate_boundary) : HTTP::Client::Response
Use the LINENotify API to notify.
Class Method Detail
def self.notify(token : String, message : String, *, thumbnail : String | Nil = nil, img_file : String | Nil = nil, stk_pkg_id : Int32 | Nil = nil, stk_id : Int32 | Nil = nil, boundary : String = MIME::Multipart.generate_boundary) : HTTP::Client::Response
#
Use the LINENotify API to notify. See: https://notify-bot.line.me/doc/en/
Send the specified token. Specify the token obtained by LINE Notify.
Send the specified message.
Send the specified thumbnail.
Send the specified img_file.
NOTE That it will be sent as "imageFullSize" for File path and as "imageFile" for URL.
Send specified "stk_pkg_id" as "stickerPacketId".
Send specified "stk_id" as "stickerId".
boundary is used as a boundary of multipart/form-data. This was defined for testing.