Chatbase
Chatbase.com analytics API client written in ruby.
Installation
Gemfile RubyGems:
gem "chatbase"
Gemfile Github:
gem "booking-ruby", :git => 'https://github.com/RTJ/chatbase.git'
Bundler:
bundle install chatbase
Setup
Initialize the the gem by setting your Agent Key (agent_key) and Agent Name (agent_name).
eg: config/initializers/chatbase.rb
Chatbase.agent_key = 'your-agent-api-key'
Chatbase.agent_name = 'your-agent-name'
Usage
Supported endpoints
Development
req_params = {
type: "user",
platform: "our-curl-test-platform",
message: "Hello Chatbase!",
version: "1.0",
user_id: "user-00"
}
response = Chatbase::Message.new.send_message(req_params)
=> response.body
{"message_id": "1048441442", "status": 200}
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 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 Chatbase project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.