Project

smsbd

0.0
The project is in a healthy, maintained state
API wrapper for Bangladesh sms provider. provider: Sms.net.bd
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

SMS.NET.BD SMS gem for ruby

SMS Package for ruby. An API warpper for sms.net.bd sms provider. Gem Version

Installation

Install the gem and add to the application's Gemfile by executing:

$ bundle add smsbd

If bundler is not being used to manage dependencies, install the gem by executing:

$ gem install smsbd

Usage

You need an api key from sms.net.bd. then set Your SMS API KEy in the .env file:

SMS_API_KEY=your_api_key

Sending sms:

  require 'smsbd'

  sms = Smsbd::Sms.new(api_key=ENV["SMS_API_KEY"])
  sms.send("Hello", "8801700111111")

To get balance on your account

  sms.balance()

Getting report for sms delivery:

  sms.report(sms-id)

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/dashingspidy/smsbd. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the Smsbd project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.