Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Page Properties
hiddentrue

Status

Status
colourGreen
titleapproved

Approver

Nadzeya Karaban

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

...

languageswift

...

Gini Bank API Initialization

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

Code Block
languageswift
    let viewControllerapiLib = GiniCapture.viewController(withClient: client,
                                                    configuration: configuration,
                                                    resultsDelegate: resultsDelegate,
                                                    api: .custom(domain GiniBankAPI.Builder(customApiDomain: "api.custom.net",
                                 alternativeTokenSource: MyAlternativeTokenSource)
                              tokenSource: MyAlternativeTokenSource))   .build()

The token you provide will be 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:Optionally, if you want to use Certificate pinning, provide metadata for the upload process. You can pass both your public key pinning configuration (see TrustKit repo for more information)

Code Block
languageswift
    let viewControllerginiApiLib = GiniCapture.viewController(withClient: client,GiniBankAPI
                                                     configuration: configuration.Builder(client: Client(id: "your-id",
                                                    resultsDelegate: resultsDelegate,
    secret: "your-secret",
                                               api: .custom(domain: "api.custom.net"your-domain"),
                                                                 path: "/custom/path"api: .default,
                 pinningConfig: yourPublicPinningConfig)
                                              tokenSource: MyAlternativeTokenSource.build()
Info

The document metadata for the upload process is intended to be used for reporting.

Cfm card
layoutSimple
selectedUrlhttps://gini.atlassian.net/wiki/spaces/ICSV/pages/11895105/Certificate+Pinning+DI
externalUrlhttps://gini.atlassian.net/wiki/spaces/ICSV/pages/11895105/Certificate+Pinning+DI
color#FFF6CE
filterSpacefalse
destinationexternalUrl
textColorPaletteDefault
iddfb18wsf8af
titleCertificate Pinning
bodyHow to use public key pinning?
textColor#000000
backgroundColorPaletteDefault
Cfm card
layoutSimple
selectedUrlhttps://gini.atlassian.net/wiki/spaces/ICSV/pages/11895147/Retrieval+of+Analyzed+Document
externalUrlhttps://gini.atlassian.net/wiki/spaces/ICSV/pages/11895147/Retrieval+of+Analyzed+Document
color#FFF6CE
filterSpacefalse
destinationexternalUrl
textColorPaletteDefault
id98eg6vcryu
titleRetrieval of Analyzed Document
bodyAfter the analysis, the Gini Bank API document is returned.
textColor#000000
backgroundColorPaletteDefault

...