International mobile number verification without an SMS gateway ( GEM ).
Grab app_id,token by creating an account on (https://www.cognalys.com) .
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/cognalys/cognalys-ruby/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