Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zabolotnov87/sms_ru
Ruby Client Library for working with SMS.RU (https://sms.ru).
https://github.com/zabolotnov87/sms_ru
faraday smsru
Last synced: about 1 month ago
JSON representation
Ruby Client Library for working with SMS.RU (https://sms.ru).
- Host: GitHub
- URL: https://github.com/zabolotnov87/sms_ru
- Owner: zabolotnov87
- Created: 2019-06-30T10:30:30.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-09-05T17:38:56.000Z (over 2 years ago)
- Last Synced: 2024-12-01T01:13:57.176Z (about 2 months ago)
- Topics: faraday, smsru
- Language: Ruby
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# SmsRu
Ruby Client Library for working with [SMS.RU](https://sms.ru).
NOTE: current implementation does not support ALL features, and includes only:
* Send SMS
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'sms-ru-client'
```And then execute:
$ bundle
Or install it yourself as:
$ gem install sms-ru-client
## Configuration
```ruby
SmsRu.configure do |config|
config.api_endpoint = 'https://sms.ru/'
config.logger = Logger.new(STDERR)
config.api_id = 'your api_id'
end
```or
```ruby
client = SmsRu::Client.new(
api_endpoint: 'https://sms.ru/'
logger: Logger.new(STDERR)
api_id: 'your api_id'
)
```## Usage
### Send SMS
```ruby
request = SmsRu::Requests::SendSms.new(
to: '79991234567',
message: 'hello world',
test: true
)SmsRu.client.send_sms(request)
```## Development
Setup:
```console
make setup
```Run linters:
```console
make lint
```Run tests:
```console
make test
```## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/zabolotnov87/sms_ru. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
## License
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
## Code of Conduct
Everyone interacting in the Test project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/zabolotnov87/sms_ru/blob/master/CODE_OF_CONDUCT.md).