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

array (opens new window)

# platformVersions()

Returns platform info.

View source (opens new window)

Arguments

Returns

array (opens new window)

# processResponseHeaders()

Processes an API response’s headers.

View source (opens new window)

Arguments

  • $headers