class LineNotifyAPI::Client

Defined in:

line_notify_api/client.cr

Constructors

Instance Method Summary

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.


[View source]

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.


[View source]