Skip to content

Kirby 3.5.7.1

$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

Parameters

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

Return type

mixed

Exceptions

Type Description
Kirby\Exception\NotFoundException
Exception

Parent class

Kirby\Api\Api