Skip to main content

AbstractAPI


AbstractAPI

  • Full name: \Onslip360\AbstractAPI
  • This class is an Abstract class

Methods​

initialize​

public static initialize(\Onslip360\RequestHandler|null $requestHandler): void
  • This method is static.

Parameters:

ParameterTypeDescription
$requestHandler\Onslip360\RequestHandler|null

__construct​

public __construct(string $base, string $realm, string $id, string $key): mixed

Parameters:

ParameterTypeDescription
$basestring
$realmstring
$idstring
$keystring

realm​

public realm(): string

setServiceEndpoints​

public setServiceEndpoints(array|null $ses, bool $keepConstructorEndpoint = true): static

Parameters:

ParameterTypeDescription
$sesarray|null
$keepConstructorEndpointbool

getServiceEndpoints​

public getServiceEndpoints(): string[]

failoverServiceEndpoint​

public failoverServiceEndpoint(): static

forRealm​

public forRealm(string $realm, ?string $id = null, ?string $key = null): static

Parameters:

ParameterTypeDescription
$realmstring
$id?string
$key?string

possess​

public possess(string $userAlias, string $realm): static

Parameters:

ParameterTypeDescription
$userAliasstring
$realmstring

at​

public at(\DateTimeInterface|string|int|float|null $date): static

Parameters:

ParameterTypeDescription
$date\DateTimeInterface|string|int|float|null

appName​

public appName(string|null $name): mixed

Parameters:

ParameterTypeDescription
$namestring|null

ifMatch​

public ifMatch(string|null $etag): static

Parameters:

ParameterTypeDescription
$etagstring|null

ifNoneMatch​

public ifNoneMatch(string|null $etag): static

Parameters:

ParameterTypeDescription
$etagstring|null

qp​

public qp(string $name, string|int|float|bool|null $value): static

Parameters:

ParameterTypeDescription
$namestring
$valuestring|int|float|bool|null

public header(string $name, string|int|float|bool|null $value): static

Parameters:

ParameterTypeDescription
$namestring
$valuestring|int|float|bool|null

onProgress​

public onProgress(\Onslip360\ProgressHandler|callable|null $progress): static

Parameters:

ParameterTypeDescription
$progress\Onslip360\ProgressHandler|callable|null

onResponseMetadata​

public onResponseMetadata(\Onslip360\ResponseMetadataHandler|callable|null $metadata): static

Parameters:

ParameterTypeDescription
$metadata\Onslip360\ResponseMetadataHandler|callable|null

requestHandler​

public requestHandler(\Onslip360\RequestHandler|null $requestHandler): static

Parameters:

ParameterTypeDescription
$requestHandler\Onslip360\RequestHandler|null

request​

public request(string $method, string $path, \Onslip360\Onslip360Object|array|null $payload): \Onslip360\Onslip360Object|\Onslip360\Onslip360Object[]|null

Parameters:

ParameterTypeDescription
$methodstring
$pathstring
$payload\Onslip360\Onslip360Object|array|null


Automatically generated on 2026-06-17