public function api(string $method, string $endpoint, array $data = []): array
    {
        $endpoint = '/' . ltrim($endpoint, '/'); // Ensure leading slash is present
        return $this->api->call($method, $endpoint, $data);
    }
public function api(string $method, string $endpoint, array $data = []): array
    {
        $endpoint = '/' . ltrim($endpoint, '/'); // Ensure leading slash is present
        return $this->api->call($method, $endpoint, $data);
    }
public function api ( string $ method , string $ endpoint , array $ data = [ ] ) : array { $ endpoint = '/' . ltrim ( $ endpoint , '/' ) ; // Ensure leading slash is present return $ this -> api -> call ( $ method , $ endpoint , $ data ) ; }
Make an API call directly
Make an API call directly