LINE Messaging API SDK for PHP

DummyApi
in package

DummyApi Class Doc Comment

Tags
category

Class

author

OpenAPI Generator team

link
https://openapi-generator.tech

Table of Contents

contentTypes  = ['callback' => ['application/json']]
$client  : ClientInterface
$config  : Configuration
$headerSelector  : HeaderSelector
$hostIndex  : int
__construct()  : mixed
callback()  : string
Operation callback
callbackAsync()  : PromiseInterface
Operation callbackAsync
callbackAsyncWithHttpInfo()  : PromiseInterface
Operation callbackAsyncWithHttpInfo
callbackRequest()  : Request
Create request for operation 'callback'
callbackWithHttpInfo()  : array<string|int, mixed>
Operation callbackWithHttpInfo
getConfig()  : Configuration
getHostIndex()  : int
Get the host index
setHostIndex()  : void
Set the host index
createHttpClientOption()  : array<string|int, mixed>
Create http client option

Constants

contentTypes

public array<string|int, string> contentTypes = ['callback' => ['application/json']]

Properties

$client

protected ClientInterface $client

$hostIndex

protected int $hostIndex

Host index

Methods

__construct()

public __construct([ClientInterface $client = null ][, Configuration $config = null ][, HeaderSelector $selector = null ], int $hostIndex) : mixed
Parameters
$client : ClientInterface = null
$config : Configuration = null
$selector : HeaderSelector = null
$hostIndex : int

(Optional) host index to select the list of hosts if defined in the OpenAPI spec

Return values
mixed

callback()

Operation callback

public callback(CallbackRequest $callbackRequest[, string $contentType = self::contentTypes['callback'][0] ]) : string
Parameters
$callbackRequest : CallbackRequest

callbackRequest (required)

$contentType : string = self::contentTypes['callback'][0]

The value for the Content-Type header. Check self::contentTypes['callback'] to see the possible values for this operation

Tags
throws
ApiException

on non-2xx response

throws
InvalidArgumentException
Return values
string

callbackAsync()

Operation callbackAsync

public callbackAsync(CallbackRequest $callbackRequest[, string $contentType = self::contentTypes['callback'][0] ]) : PromiseInterface
Parameters
$callbackRequest : CallbackRequest

(required)

$contentType : string = self::contentTypes['callback'][0]

The value for the Content-Type header. Check self::contentTypes['callback'] to see the possible values for this operation

Tags
throws
InvalidArgumentException
Return values
PromiseInterface

callbackAsyncWithHttpInfo()

Operation callbackAsyncWithHttpInfo

public callbackAsyncWithHttpInfo(CallbackRequest $callbackRequest[, string $contentType = self::contentTypes['callback'][0] ]) : PromiseInterface
Parameters
$callbackRequest : CallbackRequest

(required)

$contentType : string = self::contentTypes['callback'][0]

The value for the Content-Type header. Check self::contentTypes['callback'] to see the possible values for this operation

Tags
throws
InvalidArgumentException
Return values
PromiseInterface

callbackRequest()

Create request for operation 'callback'

public callbackRequest(CallbackRequest $callbackRequest[, string $contentType = self::contentTypes['callback'][0] ]) : Request
Parameters
$callbackRequest : CallbackRequest

(required)

$contentType : string = self::contentTypes['callback'][0]

The value for the Content-Type header. Check self::contentTypes['callback'] to see the possible values for this operation

Tags
throws
InvalidArgumentException
Return values
Request

callbackWithHttpInfo()

Operation callbackWithHttpInfo

public callbackWithHttpInfo(CallbackRequest $callbackRequest[, string $contentType = self::contentTypes['callback'][0] ]) : array<string|int, mixed>
Parameters
$callbackRequest : CallbackRequest

(required)

$contentType : string = self::contentTypes['callback'][0]

The value for the Content-Type header. Check self::contentTypes['callback'] to see the possible values for this operation

Tags
throws
ApiException

on non-2xx response

throws
InvalidArgumentException
Return values
array<string|int, mixed>

of string, HTTP status code, HTTP response headers (array of strings)

getHostIndex()

Get the host index

public getHostIndex() : int
Return values
int

Host index

setHostIndex()

Set the host index

public setHostIndex(int $hostIndex) : void
Parameters
$hostIndex : int

Host index (required)

Return values
void

createHttpClientOption()

Create http client option

protected createHttpClientOption() : array<string|int, mixed>
Tags
throws
RuntimeException

on file opening failure

Return values
array<string|int, mixed>

of http client options

Search results