Skip to content

ronakjain90/cognalys-ruby

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Cognalys-ruby (GEM)

International mobile number verification without an SMS gateway ( GEM ).

Initial Step:

Grab app_id,token by creating an account on (https://www.cognalys.com) .

Installation

Add this line to your application's Gemfile:

gem 'cognalys'

And then execute:

$ bundle

Or install it yourself as:

$ gem install cognalys

Configure

    #config/initializers/cognalys.rb
    Cognalys.setup(app_id,token)

Usage

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 )

Contributing

  1. Fork it ( https://github.com/cognalys/cognalys-ruby/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

About

Cognalys Ruby Gem

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages