README.md in chatbase-0.1.5 vs README.md in chatbase-0.1.6
- old
+ new
@@ -9,11 +9,11 @@
gem "chatbase"
```
Gemfile Github:
```ruby
-gem "booking-ruby", :git => 'https://github.com/RTJ/chatbase.git'
+gem "chatbase", :git => 'https://github.com/RTJ/chatbase.git'
```
Bundler:
```ruby
bundle install chatbase
@@ -79,11 +79,11 @@
=> response.body
{"all_succeeded"=>true, "responses"=>[{"message_id"=>1048692001, "status"=>"success"}, {"message_id"=>1048692002, "status"=>"success"}], "status"=>200}
```
-### Facebook Message API
+### Send facebook Message API
```ruby
fb_params = {
sender: {id: '1520833104112'},
recipient: {id: '528195999812'},
timestamp: DateTime.now.strftime('%Q'),
@@ -102,9 +102,37 @@
response = Chatbase::Message.new.send_fbmessage(fb_params)
=> response.body
{"message_id"=>"1052280268", "status"=>200}
+```
+
+### Other available options:
+```ruby
+# Send generic Chatbase message
+Chatbase::Message.new.send_message(params)
+
+# Send multiple generic messages at once
+Chatbase::Message.new.send_messages(params)
+
+# Update Chatbase specific fields per message
+Chatbase::Message.new.update_message(params)
+
+# Send Chatbase the agent messages and Facebook JSON responses
+Chatbase::Message.new.send_fbmessage(params)
+
+# Sending multiple Facebook messages at once
+Chatbase::Message.new.send_fbmessages(params)
+
+# Send Chatbase messages received from Facebook
+Chatbase::Message.new.send_received_fbmessage(params)
+
+# Sending multiple Facebook received messages at once
+Chatbase::Message.new.send_received_fbmessages(params)
+
+# Update Chatbase Facebook specific fields per message
+Chatbase::Message.new.update_fbmessage(params)
+
```
## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/RTJ/chatbase. 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.