Inttegro PHP SDK

HttpClient
in package

Table of Contents

Methods

__construct()  : mixed
getBinaryPublic()  : FileDownload
postBinaryJson()  : FileDownload
postMultipartResource()  : T
postMultipartValue()  : T
postResource()  : T
postValue()  : T

Methods

__construct()

public __construct(string $apiKey[, string $baseUrl = 'https://api.inttegro.com' ][, int $timeout = 30 ][, mixed $adapter = null ][, bool $telemetryEnabled = true ][, TracerProviderInterface|null $tracerProvider = null ][, TextMapPropagatorInterface|null $propagator = null ][, callable|null $errorReporter = null ][, string $errorReportingPolicy = 'unexpected' ]) : mixed
Parameters
$apiKey : string
$baseUrl : string = 'https://api.inttegro.com'
$timeout : int = 30
$adapter : mixed = null
$telemetryEnabled : bool = true
$tracerProvider : TracerProviderInterface|null = null
$propagator : TextMapPropagatorInterface|null = null
$errorReporter : callable|null = null
$errorReportingPolicy : string = 'unexpected'

postBinaryJson()

public postBinaryJson(string $path, array<string|int, mixed> $body) : FileDownload
Parameters
$path : string
$body : array<string|int, mixed>
Return values
FileDownload

postMultipartResource()

public postMultipartResource(string $path, T> $class, string $field, array<string|int, mixed> $fields, array<string|int, mixed> $files[, array<string|int, mixed> $headers = [] ][, bool $authenticated = true ]) : T
Parameters
$path : string
$class : T>
$field : string
$fields : array<string|int, mixed>
$files : array<string|int, mixed>
$headers : array<string|int, mixed> = []
$authenticated : bool = true
Tags
template
Return values
T

postMultipartValue()

public postMultipartValue(string $path, T> $class, array<string|int, mixed> $fields, array<string|int, mixed> $files[, array<string|int, mixed> $headers = [] ][, bool $authenticated = true ][, string|null $operation = null ]) : T
Parameters
$path : string
$class : T>
$fields : array<string|int, mixed>
$files : array<string|int, mixed>
$headers : array<string|int, mixed> = []
$authenticated : bool = true
$operation : string|null = null
Tags
template
Return values
T

postResource()

public postResource(string $path, T> $class, string $field[, array<string|int, mixed>|null $body = null ][, array<string|int, mixed> $headers = [] ]) : T
Parameters
$path : string
$class : T>
$field : string
$body : array<string|int, mixed>|null = null
$headers : array<string|int, mixed> = []
Tags
template
Return values
T

postValue()

public postValue(string $path, T> $class[, array<string|int, mixed>|null $body = null ][, array<string|int, mixed> $headers = [] ]) : T
Parameters
$path : string
$class : T>
$body : array<string|int, mixed>|null = null
$headers : array<string|int, mixed> = []
Tags
template
Return values
T
On this page

Search results