Skip to content

Latest commit

 

History

History
119 lines (72 loc) · 1.68 KB

File metadata and controls

119 lines (72 loc) · 1.68 KB

Configuration for LingoDotDevEngine initialization.


  • Full name: \LingoDotDev\Sdk\EngineConfig

See Also:

Properties

apiKey

Your Lingo.dev API token

public string $apiKey

apiUrl

API base URL (default: https://engine.lingo.dev)

public string $apiUrl

batchSize

Maximum records per request (1-250, default: 25)

public int $batchSize

idealBatchItemSize

Maximum words per request (1-2500, default: 250)

public int $idealBatchItemSize

Methods

create

Create 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

withApiUrl

Set custom API URL.

public withApiUrl(string $url): self

Parameters:

Parameter Type Description
$url string API endpoint URL

withBatchSize

Set batch size limit.

public withBatchSize(int $size): self

Parameters:

Parameter Type Description
$size int Records per request (1-250)

withIdealBatchItemSize

Set ideal batch item size.

public withIdealBatchItemSize(int $size): self

Parameters:

Parameter Type Description
$size int Max words per request (1-2500)