Skip to content
No description, website, or topics provided.
Objective-C Ruby
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
CloudcheckSDK.framework
.gitignore
CHANGELOG.md
CloudcheckSDK.podspec
LICENSE
README.md

README.md

CloudcheckSDK

Version License Platform

Installation

CloudcheckSDK is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'CloudcheckSDK'

Alternatively, you can download the latest release tag and drop in the framework to your Xcode project

Instructions

Import the module

import CloudcheckSDK

First initialize the SDK with the key and secret provided to you. Contact support@verifidentity.com if you haven't got one.

CloudcheckAPI.loadAPI(key: "my_cloudcheck_key", secret: "my_cloudcheck_secret")

Cloudcheck UI

The simplest way to perform a verification is to use the provided verification workflow

let controller = CloudcheckViewController(mode: .live, reference: NSUUID().uuidString, delegate: self)
present(controller, animated: true, completion: nil)

The available modes for verification are .live and .verify. Use the mode that best suits your requirements.

Cloudcheck API

You can access the API via this SDK.

To make a verify request you will have to construct a CloudcheckSDK.CCVerifyRequest instance. Once all of the details are loaded into the request object, simply call:

let request = CCVerifyRequest()

CloudcheckAPI.verify(request, completion: { result in
  // Handle the result
  switch result {
    case .error(let error):
      // Handle the error
    case .response(let response):
      // Handle the response
  }
})

Cloudcheck Live

A Cloudcheck Live request must use our supplied view controllers. To start a Live request with a Capture Reference you can do so like this:

let controller = CloudcheckViewController(mode: .live, reference: myCaptureReference, delegate: self, config: CCConfig(), verificationReference: myVerificationReference)
present(controller, animated: true, completion: nil)

Author

Verifidentity, support@verifidentity.com

License

CloudcheckSDK is available under the MIT license. See the LICENSE file for more info.

You can’t perform that action at this time.