Skip to content

Kirby 4.5.0

$api->call()

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

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

Parameters

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

Return type

mixed|null

Parent class

Kirby\Cms\Api