Created
April 29, 2018 10:19
-
-
Save ParthivPatel-BTC/1ab1e21a679c7a1b6a837a02cac29093 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Msg91MessageService | |
def send_sms(to_number, message) | |
require 'msg91ruby' | |
begin | |
api = Msg91ruby::API.new(ENV['MSG91_AUTH_KEY'], ENV['MSG91_SENDER_ID']) | |
api.send(to_number, message, 4) | |
rescue => e | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment