for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
module RingCentralSdk::REST
class Messages
attr_reader :sms
attr_reader :fax
def initialize(client)
@client = client
@sms = RingCentralSdk::REST::MessagesSMS.new(client)
@fax = RingCentralSdk::REST::MessagesFax.new(client)
end
class MessagesSMS
def create(opts)
response = @client.http.post do |req|
req.url 'account/~/extension/~/sms'
req.headers['Content-Type'] = 'application/json'
req.body = {
:from => { :phoneNumber => opts[:from].to_s },
:to => [ { :phoneNumber => opts[:to].to_s } ],
:text => opts[:text].to_s
}
return response
class MessagesFax
fax = RingCentralSdk::REST::Request::Fax.new(opts)
return @client.send_request(fax)