BaseEndpoint
in package
AbstractYes
Abstract class for endpoints.
Table of Contents
Properties
Methods
- __construct() : mixed
- setFinalCurlOpts() : array<string|int, mixed>
- initCurlSessionGet() : array<string|int, mixed>
- Starts a CURL session, using GET.
Properties
$settings
public
MindeeApi|MindeeWorkflowApi
$settings
Settings of the endpoint.
Methods
__construct()
public
__construct(MindeeApi|MindeeWorkflowApi $settings) : mixed
Parameters
- $settings : MindeeApi|MindeeWorkflowApi
-
Input settings.
setFinalCurlOpts()
public
setFinalCurlOpts(resource $ch, string $suffix, array<string|int, mixed>|null $postFields) : array<string|int, mixed>
Parameters
- $ch : resource
-
Curl Channel.
- $suffix : string
-
Optional suffix for the url call.
- $postFields : array<string|int, mixed>|null
-
Post fields.
Return values
array<string|int, mixed>initCurlSessionGet()
Starts a CURL session, using GET.
protected
initCurlSessionGet(string $queueId) : array<string|int, mixed>
Parameters
- $queueId : string
-
ID of the queue to poll.