AuthenticationApi
in package
AuthenticationApi Class Doc Comment
Tags
Table of Contents
Constants
- contentTypes = ['issueAuthenticationToken' => ['application/json']]
Properties
- $client : ClientInterface
- $config : Configuration
- $headerSelector : HeaderSelector
- $hostIndex : int
Methods
- __construct() : mixed
- getConfig() : Configuration
- getHostIndex() : int
- Get the host index
- issueAuthenticationToken() : TokenInformation
- Operation issueAuthenticationToken
- issueAuthenticationTokenAsync() : PromiseInterface
- Operation issueAuthenticationTokenAsync
- issueAuthenticationTokenAsyncWithHttpInfo() : PromiseInterface
- Operation issueAuthenticationTokenAsyncWithHttpInfo
- issueAuthenticationTokenRequest() : Request
- Create request for operation 'issueAuthenticationToken'
- issueAuthenticationTokenWithHttpInfo() : array<string|int, mixed>
- Operation issueAuthenticationTokenWithHttpInfo
- setHostIndex() : void
- Set the host index
- createHttpClientOption() : array<string|int, mixed>
- Create http client option
- handleResponseWithDataType() : array<string|int, mixed>
- responseWithinRangeCode() : bool
Constants
contentTypes
public
array<string|int, string>
contentTypes
= ['issueAuthenticationToken' => ['application/json']]
Properties
$client
protected
ClientInterface
$client
$config
protected
Configuration
$config
$headerSelector
protected
HeaderSelector
$headerSelector
$hostIndex
protected
int
$hostIndex
Host index
Methods
__construct()
public
__construct([ClientInterface $client = null ][, Configuration $config = null ][, HeaderSelector $selector = null ][, int $hostIndex = 0 ]) : mixed
Parameters
- $client : ClientInterface = null
- $config : Configuration = null
- $selector : HeaderSelector = null
- $hostIndex : int = 0
-
(Optional) host index to select the list of hosts if defined in the OpenAPI spec
getConfig()
public
getConfig() : Configuration
Return values
ConfigurationgetHostIndex()
Get the host index
public
getHostIndex() : int
Return values
int —Host index
issueAuthenticationToken()
Operation issueAuthenticationToken
public
issueAuthenticationToken([string $contentType = self::contentTypes['issueAuthenticationToken'][0] ]) : TokenInformation
Get an authentication token.
Parameters
- $contentType : string = self::contentTypes['issueAuthenticationToken'][0]
-
The value for the Content-Type header. Check self::contentTypes['issueAuthenticationToken'] to see the possible values for this operation
Tags
Return values
TokenInformationissueAuthenticationTokenAsync()
Operation issueAuthenticationTokenAsync
public
issueAuthenticationTokenAsync([string $contentType = self::contentTypes['issueAuthenticationToken'][0] ]) : PromiseInterface
Get an authentication token.
Parameters
- $contentType : string = self::contentTypes['issueAuthenticationToken'][0]
-
The value for the Content-Type header. Check self::contentTypes['issueAuthenticationToken'] to see the possible values for this operation
Tags
Return values
PromiseInterfaceissueAuthenticationTokenAsyncWithHttpInfo()
Operation issueAuthenticationTokenAsyncWithHttpInfo
public
issueAuthenticationTokenAsyncWithHttpInfo([string $contentType = self::contentTypes['issueAuthenticationToken'][0] ]) : PromiseInterface
Get an authentication token.
Parameters
- $contentType : string = self::contentTypes['issueAuthenticationToken'][0]
-
The value for the Content-Type header. Check self::contentTypes['issueAuthenticationToken'] to see the possible values for this operation
Tags
Return values
PromiseInterfaceissueAuthenticationTokenRequest()
Create request for operation 'issueAuthenticationToken'
public
issueAuthenticationTokenRequest([string $contentType = self::contentTypes['issueAuthenticationToken'][0] ]) : Request
Parameters
- $contentType : string = self::contentTypes['issueAuthenticationToken'][0]
-
The value for the Content-Type header. Check self::contentTypes['issueAuthenticationToken'] to see the possible values for this operation
Tags
Return values
RequestissueAuthenticationTokenWithHttpInfo()
Operation issueAuthenticationTokenWithHttpInfo
public
issueAuthenticationTokenWithHttpInfo([string $contentType = self::contentTypes['issueAuthenticationToken'][0] ]) : array<string|int, mixed>
Get an authentication token.
Parameters
- $contentType : string = self::contentTypes['issueAuthenticationToken'][0]
-
The value for the Content-Type header. Check self::contentTypes['issueAuthenticationToken'] to see the possible values for this operation
Tags
Return values
array<string|int, mixed> —of \Tectly\OpenAPI\Model\TokenInformation, HTTP status code, HTTP response headers (array of strings)
setHostIndex()
Set the host index
public
setHostIndex(int $hostIndex) : void
Parameters
- $hostIndex : int
-
Host index (required)
createHttpClientOption()
Create http client option
protected
createHttpClientOption() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —of http client options
handleResponseWithDataType()
private
handleResponseWithDataType(string $dataType, RequestInterface $request, ResponseInterface $response) : array<string|int, mixed>
Parameters
- $dataType : string
- $request : RequestInterface
- $response : ResponseInterface
Return values
array<string|int, mixed>responseWithinRangeCode()
private
responseWithinRangeCode(string $rangeCode, int $statusCode) : bool
Parameters
- $rangeCode : string
- $statusCode : int