Skip to content

Api ​

Type
Abstract Class
Namespace
craft\helpers
Inherits
craft\helpers\Api
Since
3.3.16

Craftnet API helper.

View source

Public Methods ​

MethodDescription
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

Returns ​

array

platformVersions() ​

Returns platform info.

View source

Arguments ​

  • $useComposerOverrides (boolean) – Whether to factor in any config.platform overrides

Returns ​

array

processResponseHeaders() ​

Processes an API response’s headers.

View source

Arguments ​

  • $headers (string[][], string[]) – The response headers