Latest 1.0.2
Homepage https://github.com/VeriFire/VerifireKit-ios
License MIT
Platforms ios 8.0, requires ARC
Dependencies AFNetworking
Authors

Verifire

Installation with CocoaPods

CocoaPods is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party libraries like AFNetworking in your projects. You can install it with the following command:

$ gem install cocoapods

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
    }

}];

Latest podspec

{
    "name": "VerifireKit",
    "version": "1.0.2",
    "summary": "Phone number verification",
    "homepage": "https://github.com/VeriFire/VerifireKit-ios",
    "documentation_url": "https://verifire.io/",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Sergey Popov": "[email protected]"
    },
    "source": {
        "git": "https://github.com/VeriFire/VerifireKit-ios.git",
        "tag": "1.0.2"
    },
    "requires_arc": true,
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "VerifireKit/**/*.[mh]",
    "public_header_files": "VerifireKit/Public/*.h",
    "private_header_files": "VerifireKit/Private/*.h",
    "resources": "VerifireKit/Resources/VerifireKit.bundle",
    "module_map": "VerifireKit/Resources/module.modulemap",
    "dependencies": {
        "AFNetworking": [
            "~> 3.0"
        ]
    }
}

Pin It on Pinterest

Share This