TODO: Write a gem description
Add this line to your application's Gemfile:
gem 'cognalys'
And then execute:
$ bundle
Or install it yourself as:
$ gem install cognalys
#config/initializers/cognalys.rb
Cognalys.setup(app_id,token)
To request validation
require 'cognalys'
cognalys = Cognalys::Request.new
cognalys.request_verification( :mobile => phone )
To verify OTP
require 'cognalys'
cognalys = Cognalys::Request.new
cognalys.validate_otp( :keymatch => key_match, :otp => full_otp )
- Fork it ( https://github.com/ronakjain90/cognalys/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request