class Shoutout::SMS

Public Class Methods

send(apikey,from,to,body) click to toggle source
# File lib/shoutout/sms.rb, line 3
def self.send(apikey,from,to,body)

    return Shoutout::RestClient.postJson(
        body:{
            'source' => from, 
            'transports':['sms'],
            'content' => {
            'sms'=>body
        }, 
        'destinations' => [to]},
        url:"https://api.getshoutout.com/coreservice/messages",
        apikey:apikey

    )


    
end