ApiClient
extends Client
in package
Description of ApiClient
Tags
Table of Contents
- $mockMode : bool
- Use mocking for api calls ?
- $pSUIPAddress : string
- the end IP address of the client application (no server) in IPv4 or IPv6 format. If the bank client (your user) uses a browser by which he accesses your server app, we need to know the IP address of his browser.
- $xIBMClientId : string
- ClientID obtained from Developer Portal - when you registered your app with us.
- __construct() : mixed
- checkCertificatePresence() : bool
- Try to check certificate readibilty
- getMockMode() : bool
- Use mocking uri for api calls ?
- getpSUIPAddress() : string
- Keep user public IP here
- getPublicIP() : string
- Obtain Your current Public IP
- getXIBMClientId() : string
- ClientID obtained from Developer Portal
- getxRequestId() : string
- Request Identifier
- sourceString() : string
- Source Identifier
Properties
$mockMode
Use mocking for api calls ?
protected
bool
$mockMode
= false
$pSUIPAddress
the end IP address of the client application (no server) in IPv4 or IPv6 format. If the bank client (your user) uses a browser by which he accesses your server app, we need to know the IP address of his browser.
protected
string
$pSUIPAddress
= null
Always provide the closest IP address to the real end-user possible. (optional)
$xIBMClientId
ClientID obtained from Developer Portal - when you registered your app with us.
protected
string
$xIBMClientId
= null
Methods
__construct()
public
__construct([array<string|int, mixed> $config = [] ]) : mixed
Parameters
- $config : array<string|int, mixed> = []
Tags
Return values
mixed —checkCertificatePresence()
Try to check certificate readibilty
public
static checkCertificatePresence(string $certFile[, bool $die = false ]) : bool
Parameters
- $certFile : string
-
path to certificate
- $die : bool = false
-
throw exception or return false ?
Tags
Return values
bool —certificate file
getMockMode()
Use mocking uri for api calls ?
public
getMockMode() : bool
Return values
bool —getpSUIPAddress()
Keep user public IP here
public
getpSUIPAddress() : string
Return values
string —getPublicIP()
Obtain Your current Public IP
public
static getPublicIP() : string
Tags
Return values
string —getXIBMClientId()
ClientID obtained from Developer Portal
public
getXIBMClientId() : string
Return values
string —getxRequestId()
Request Identifier
public
static getxRequestId() : string
Tags
Return values
string —sourceString()
Source Identifier
public
static sourceString() : string