Sha256: 102160132c3453905fee1c1cf78c5855c55702c8a131f388e4a89d1b88645bbd
Contents?: true
Size: 657 Bytes
Versions: 1
Compression:
Stored size: 657 Bytes
Contents
require_relative 'requests/send_message' require_relative 'responses/send_message' require_relative 'requests/message_status' require_relative 'responses/message_status' module OpenMarket module SMS class Client < OpenMarket::Client BASE_URL ='sms/v4'.freeze def send_message(from:, to:, text:) request = Requests::SendMessage.new(from, to, text) SMS::Responses::SendMessage.new(request, send_request(request)) end def message_status(ticket_id:) request = Requests::MessageStatus.new(ticket_id) SMS::Responses::MessageStatus.new(request, send_request(request)) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sms_broker-1.0.7 | lib/open_market/sms/client.rb |