class LineNotifyAPI::Client
- LineNotifyAPI::Client
- Reference
- Object
Defined in:
line_notify_api/client.crConstructors
-
.new(token : String)
It is a client for sending to "LINE Notify API".
Instance Method Summary
-
#notify(message, *, thumbnail = nil, img_file = nil, stk_pkg_id = nil, stk_id = nil, boundary = MIME::Multipart.generate_boundary) : HTTP::Client::Response
Pass an instance creation token and an argument of this method to
NotifyAPI.notify
.
Constructor Detail
def self.new(token : String)
#
It is a client for sending to "LINE Notify API". In order to hold the token of the argument, it is efficient to use Client when dealing with the same token.
Send the specified token. Specify the token obtained by LINE Notify.
Instance Method Detail
def notify(message, *, thumbnail = nil, img_file = nil, stk_pkg_id = nil, stk_id = nil, boundary = MIME::Multipart.generate_boundary) : HTTP::Client::Response
#
Pass an instance creation token and an argument of this method to NotifyAPI.notify
.