VerifireKit 1.0.2

VerifireKit 1.0.2

测试已测试
语言语言 Obj-CObjective C
许可证 MIT
发布上次发布2017年10月

Sergey Popov 维护。



  • Sergey Popov

VerifireKit-ios

Podfile

要使用 CocoaPods 将 VerifireKit 集成到您的 Xcode 项目中,请在其 Podfile 中指定它

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

target 'TargetName' do
pod 'VerifireKit'
end

然后,运行以下命令

$ pod install

用法

请求验证

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

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

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

完成验证

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

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

}];