class Shoutout::Client
Attributes
apikey[R]
Init shoutout=Shoutout::Client.new(“APIKEY HERE”)
Example:
>> response=shoutout.sendSms(from:"ShoutTEST",to:"94778811111",body:"This is a test message") {"status"=>"1001", "description"=>"submit success", "cost"=>1, "responses"=>[{"destination"=>"94778811111", "reference_id"=>"ca31e340-c8f2-11eb-94b7-45623297139f", "status"=>"1001", "cost"=>1}]}
Arguments:
apikey: (String) ShoutOUT Apikey from: (String) sender ID to: (Array) receivers phone numbers body: (String) message body
Public Class Methods
new(apikey)
click to toggle source
# File lib/shoutout.rb, line 18 def initialize(apikey) @apikey=apikey end
Public Instance Methods
sendSms(from:,to:,body:)
click to toggle source
# File lib/shoutout.rb, line 23 def sendSms(from:,to:,body:) return SMS.send(self.apikey,from,to,body) end