Skip to content

Kirby 5.0.4

$api->call()

Execute an API call for the given path, request method and optional request data

$api->call(string|null $path = null, string $method = 'GET', array $requestData = [ ]): mixed

Parameters

Name Type Default
$path stringornull null
$method string 'GET'
$requestData array [ ]

Return type

mixed

This method modifies the existing $api object it is applied to and returns it again.

Parent class

Kirby\Cms\Api