Configuration for LingoDotDevEngine initialization.
- Full name:
\LingoDotDev\Sdk\EngineConfig
See Also:
Your Lingo.dev API token
public string $apiKeyAPI base URL (default: https://engine.lingo.dev)
public string $apiUrlMaximum records per request (1-250, default: 25)
public int $batchSizeMaximum words per request (1-2500, default: 250)
public int $idealBatchItemSizeCreate configuration with API key.
public static create(string $apiKey): self- This method is static. Parameters:
| Parameter | Type | Description |
|---|---|---|
$apiKey |
string | Your Lingo.dev API token |
Set custom API URL.
public withApiUrl(string $url): selfParameters:
| Parameter | Type | Description |
|---|---|---|
$url |
string | API endpoint URL |
Set batch size limit.
public withBatchSize(int $size): selfParameters:
| Parameter | Type | Description |
|---|---|---|
$size |
int | Records per request (1-250) |
Set ideal batch item size.
public withIdealBatchItemSize(int $size): selfParameters:
| Parameter | Type | Description |
|---|---|---|
$size |
int | Max words per request (1-2500) |