Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Vonage/number-verification-sdk-ios

Repository files navigation

⚠️ This Library has been deprecated in favour of the VonageClientLibrary ⚠️

VonageClientSDKNumberVerification

Vonage Number Verification uses a mobile phone's Subscriber Identity Module (SIM) to prove a user's identity. This SDK enables making a HTTP request over cellular even when on WiFi. This SDK is designed to be used as part of a Number Verification flow, please read the guide for more information.

Installation

Swift Package Manager

import PackageDescription

let package = Package(
    dependencies: [
        .Package(url: "https://github.com/Vonage/number-verification-sdk-ios.git")
    ]
)

Cocoapods

pod 'VonageClientSDKNumberVerification'

Compatibility

iOS 13+

Usage

import VonageClientSDKNumberVerification

let client = VGNumberVerificationClient()
let params = VGNumberVerificationParameters(url: "http://www.vonage.com",
                                            headers: ["x-my-header": "My Value"],
                                            queryParameters: ["query-param" : "value"]
                                            maxRedirectCount: 10
             )
        
let response = try await client.startNumberVerification(params: params)