You are here

public function ApiClient::__call in Auth0 Single Sign On 8.2

Magic method to map HTTP verbs to request types.

Parameters

string $name - Method name used to call the magic method.:

array $arguments - Arguments used in the magic method call.:

Return value

RequestBuilder

Deprecated

5.6.0, use $this->method().

File

vendor/auth0/auth0-php/src/API/Helpers/ApiClient.php, line 77

Class

ApiClient

Namespace

Auth0\SDK\API\Helpers

Code

public function __call($name, $arguments) {
  $builder = new RequestBuilder([
    'domain' => $this->domain,
    'basePath' => $this->basePath,
    'method' => $name,
    'guzzleOptions' => $this->guzzleOptions,
    'returnType' => $this->returnType,
  ]);
  return $builder
    ->withHeaders($this->headers);
}