README.md in zenvia-rb-0.0.5 vs README.md in zenvia-rb-0.0.6
- old
+ new
@@ -3,11 +3,11 @@
## Installation
Add this line to your application's Gemfile:
```ruby
-gem 'zenvia-rb', '~> 0.0.5'
+gem 'zenvia-rb', '~> 0.0.6'
```
And then execute:
$ bundle
@@ -28,10 +28,20 @@
config.account = account_given_by_zenvia
config.code = code_given_by_zenvia
config.from = user_or_enterprise_name # optional
}
+# from = personal or enterprise name. config.from will be used as default.
+# if you do not want to identify the sender, use from = ''
+# number = area code + number
+# message = body of the message
+
Zenvia.send_message(from = config.from, number, message)
+
+# alternatively, you can set number parameters equal to an array of numbers - and send the same message to them
+numbers = ['DDNNNNNNNNN', 'DDNNNNNNNNM']
+Zenvia.send_message(from = config.from, numbers, message)
+
```
That's all ;)
## Development