Class: Mpayer::Sms
Instance Attribute Summary
Attributes inherited from Base
#base_url, #mpayer_token, #user_no
Instance Method Summary collapse
-
#send_message(json_msg) ⇒ Object
POST /messages.
Methods inherited from Base
#auth, #delete, #get, #initialize, #parse_api_response, #post, #put
Constructor Details
This class inherits a constructor from Mpayer::Base
Instance Method Details
#send_message(json_msg) ⇒ Object
POST /messages
6 7 8 |
# File 'lib/mpayer/sms.rb', line 6 def (json_msg) HTTParty.post('/messages', body: json_msg) end |