Class: Smsapi::Client
- Inherits:
-
Object
- Object
- Smsapi::Client
- Defined in:
- lib/smsapi/client.rb
Instance Method Summary collapse
- #credits(options = {}) ⇒ Object
-
#initialize(token) ⇒ Client
constructor
A new instance of Client.
- #schedule_single(to, message, date, options = {}) ⇒ Object
- #send_bulk(to, message, options = {}) ⇒ Object
- #send_single(to, message, options = {}) ⇒ Object
Constructor Details
Instance Method Details
#credits(options = {}) ⇒ Object
7 8 9 |
# File 'lib/smsapi/client.rb', line 7 def credits( = {}) Smsapi::Credits.new(@server, ).check end |
#schedule_single(to, message, date, options = {}) ⇒ Object
15 16 17 |
# File 'lib/smsapi/client.rb', line 15 def schedule_single(to, , date, = {}) Smsapi::SMS.new(to, , @server, ).deliver_at(date) end |