Class: Mpayer::Sms

Inherits:
Base
  • Object
show all
Defined in:
lib/mpayer/sms.rb

Instance Attribute Summary

Attributes inherited from Base

#base_url, #mpayer_token, #user_no

Instance Method Summary collapse

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 send_message(json_msg)
  HTTParty.post('/messages', body: json_msg)
end