/
Networking (Pay Connect)
Networking (Pay Connect)
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:
let apiLib = GiniBankAPI.Builder(customApiDomain: "api.custom.net",
alternativeTokenSource: 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:
let giniBankAPI = GiniBankAPI.Builder(client: client,
api: .custom(domain: "api.custom.net",
path: "/custom/path",
tokenSource: MyAlternativeTokenSource))
.build()
Optionally, if you want to use certificate pinning, pass your public key pinning configuration (see TrustKit repo for more information) as follows:
let giniApiLib = GiniBankAPI
.Builder(client: Client(id: "your-id",
secret: "your-secret",
domain: "your-domain"),
api: .default,
pinningConfig: yourPublicPinningConfig)
.build()
Gini Bank Initialization
After the GiniBankAPI
is initialized, initialize GiniBank
:
, multiple selections available,
Related content
Networking (Pay Connect)
Networking (Pay Connect)
More like this
Networking (Pay Connect)
Networking (Pay Connect)
More like this
Networking (Pay Connect)
Networking (Pay Connect)
More like this
Networking (Pay Connect)
Networking (Pay Connect)
More like this
Networking (Pay Connect)
Networking (Pay Connect)
More like this
Networking (Pay Connect)
Networking (Pay Connect)
More like this