0.0
No release in over a year
Send SMS/HLR/Viber via smsaero.ru gate
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies
 Project Readme

SmsAero Ruby Api

Installation:

gem install smsaero_api

Usage:

require 'smsaero_api'

SMSAERO_EMAIL = 'your email'
SMSAERO_API_KEY = 'your api key'

api = SmsAeroApi::SmsAero.new(SMSAERO_EMAIL, SMSAERO_API_KEY)

# Send SMS message
begin
  puts api.send('70000000000', 'Hello, World!')
rescue => e
  puts "Error: #{e.message}"
end

# Send Telegram code
begin
  result = api.send_telegram('70000000000', 1234, 'SMS Aero', 'Ваш код 1234')
  puts "Telegram sent: #{result}"
rescue => e
  puts "Error: #{e.message}"
end

License

MIT License