Skip to end of banner
Go to start of banner

Default Implementation

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Current »

Using this method, you don’t need to care about handling the analysis process with Gini Bank API Library, you only provide your API credentials and a delegate to get the analysis results.

let viewController = GiniCapture.viewController(withClient: client,
                                                configuration: giniConfiguration,
                                                resultsDelegate: resultsDelegate)

present(viewController, animated: true, completion:nil)

If you want to use a transparent proxy with your own authentication, specify your own domain and add AlternativeTokenSource protocol implementation:

    let viewController = GiniCapture.viewController(withClient: client,
                                                    configuration: configuration,
                                                    resultsDelegate: resultsDelegate,
                                                    api: .custom(domain: "api.custom.net",
                                                                 tokenSource: MyAlternativeTokenSource))

The token you provide is added as a bearer token to all api.custom.net requests.

You can also specify a custom path segment if your proxy URL requires it:

    let viewController = GiniCapture.viewController(withClient: client,
                                                    configuration: configuration,
                                                    resultsDelegate: resultsDelegate,
                                                    api: .custom(domain: "api.custom.net",
                                                                 path: "/custom/path",
                                                                 tokenSource: MyAlternativeTokenSource))


  • No labels