Project

botan-ruby

0.0
No commit activity in last 3 years
No release in over 3 years
Ruby wrapper for botan.io
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.16
~> 10.0
~> 3.0

Runtime

 Project Readme

botan-ruby

Ruby wrapper for botan.io.

Installation

Add this line to your application's Gemfile:

gem 'botan-ruby'

And then execute:

$ bundle

Or install it yourself as:

$ gem install botan-ruby

Obtain Token

  1. Register at appmetrica.yandex.com
  2. After registration you will be prompted to create Application. Please use @YourBotName as a name.
  3. Save an API key from settings page, you will use it as a token for Botan API calls.
  4. [Optional] You can set token key globally for the gem
Botan.configuration.token = 'Token key'

or

Botan.configure do |conf|
  conf.token = 'Token key'
end

Usage

uid = 123
message = 'text'
name = 'search'
token = 'token key' # [optional] if not set globally 
Botan.track(uid, message, name, token)

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/Stajor/botan-ruby. 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.