CocoaPods trunk is moving to be read-only. Read more on the blog, there are 18 months to go.

VerifireKit 1.0.2

VerifireKit 1.0.2

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Oct 2017

Maintained by Sergey Popov.



  • By
  • Sergey Popov

VerifireKit-ios

Podfile

To integrate VerifireKit into your Xcode project using CocoaPods, specify it in your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'

target 'TargetName' do
pod 'VerifireKit'
end

Then, run the following command:

$ pod install

Usage

Request Verification

self.verifire = [[VFVerifire alloc] initWithKey:<YOUR SDK KEY>];

[self.verifire verifyNumber:phoneNumberString method:VFVerifireMethodSMS completion:^(NSError * _Nullable error) {

    if (! error)
    {
        // Number verification successfylly requested
    }
}];

Complete Verification

[self.verifire confirmWithCode:PINCode completion:^(NSString * _Nullable phoneNumber, NSString * _Nullable requestId, NSError * _Nullable error) {

    if (! error)
    {
        // Phone number successfully verified
    }

}];