Sha256: b2252a6b90897fbc886e8e9d954ecf4655af2087fe288957e01998d67de029ae

Contents?: true

Size: 1.12 KB

Versions: 1

Compression:

Stored size: 1.12 KB

Contents

# Zenvia

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'zenvia-rb', '~> 0.0.2'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install zenvia-rb

HTTParty is the only dependency for this gem.

## Usage

### Configuration
In your script
```ruby

Zenvia.configure {|config|
    config.account = account_given_by_zenvia
    config.code = code_given_by_zenvia
    config.name = user_or_enterprise_name # optional
}

```

### Usage
```ruby
require 'zenvia'

# if from is nil, the sender name will be set as config.name (as above)
# if you prefer a definitely nil sender, you can set from = ''

sms = Zenvia::SMS.new(from, number, message)
sms.send_message
```

That's all ;)

## Development

After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.

## Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/jefersonhuan/zenvia-rb


## License

The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
zenvia-rb-0.0.3 README.md