Api
- Type
- Abstract Class
- Namespace
- craft\helpers
- Inherits
- craft\helpers\Api
- Since
- 3.3.16
Craftnet API helper.
View source (opens new window)
# Public Methods
Method | Description |
---|---|
headers() | Returns the headers that should be sent with API requests. |
platformVersions() | Returns platform info. |
processResponseHeaders() | Processes an API response’s headers. |
# headers()
Returns the headers that should be sent with API requests.
View source (opens new window)
Returns
# platformVersions()
Returns platform info.
View source (opens new window)
Arguments
$useComposerOverrides
(boolean (opens new window)) – Whether to factor in anyconfig.platform
overrides
Returns
# processResponseHeaders()
Processes an API response’s headers.
View source (opens new window)
Arguments
$headers
(string[][]
, string (opens new window)[]) – The response headers
← AdminTable App →