UsherAPIRequestConfiguration

public struct UsherAPIRequestConfiguration : APIRequestConfigurationType
extension UsherAPIRequestConfiguration: URLConvertible, URLRequestConvertible

An APIRequestConfigurationType that configures API requirements for the Usher Server either by providing an UsherAPITask at initialization or initializing with a server and device instance. This class will also automatically configure other properties required by the Usher Server such as access token, location, device and OS info, locale, timezone and time.

  • Formats the api URL using the host and the API path.

    Throws

    throws AFError.invalidURL if a URL cannot be formatted.
    Declaration

    Swift

    public func asURL() throws -> URL
    Return Value

    Returns a URL combining the server host string and the API path.

  • Formats a URLRequest from configuration. This method will take care of setting property values and parameters required by Usher Server such as access token, location, device and OS info, locale, timezone and time. This method will throw error if URLRequest cannot be configured.

    Declaration

    Swift

    public func asURLRequest() throws -> URLRequest
    Return Value

    A URLRequest instance

  • Undocumented

    Declaration

    Swift

    mutating mutating func verifyQR(config: VerifyQRConfig)
  • Undocumented

    Declaration

    Swift

    mutating mutating func verifyUser(request: UserVerificationRequest)