◆ __construct()
Wikimedia\Parsoid\Config\Api\ApiHelper::__construct |
( |
array | $opts | ) |
|
- Parameters
-
array | $opts |
- apiEndpoint: (string) URL for api.php. Required.
- apiTimeout: (int) Timeout, in sections. Default 60.
- userAgent: (string) User agent prefix.
- cacheDir: (string) If present, looks aside to the specified directory for a cached response before making a network request.
- writeToCache: (bool|string) If present and truthy, writes successful network requests to
cacheDir so they can be reused. If set to the string 'pretty', prettifies the JSON returned before writing it.
|
◆ makeRequest()
Wikimedia\Parsoid\Config\Api\ApiHelper::makeRequest |
( |
array | $params | ) |
|
The documentation for this class was generated from the following file:
- src/Config/Api/ApiHelper.php