use Siiau\ApiClient\Facades\Siiau;
$alumno = siiau()->alumno()->encontrar(
codigo: '123456789',
);
use Siiau\ApiClient\SiiauConnector;
public function foo(SiiauConnector $siiau): void
{
$alumno = $siiau->alumno()->encontrar(
codigo: '123456789',
);
}
Avanzado
use Siiau\ApiClient\Requests\GetAlumnoRequest;
$response = siiau()->send(new GetAlumnoRequest(
codigo: '123456789',
));
use Siiau\ApiClient\Requests\GetAlumnoRequest;
$promise = siiau()->sendAsync(new GetAlumnoRequest(
codigo: '123456789',
));
$promise
->then(static function (Response $response) {
// Handle Response
})
->otherwise(static function (RequestException $exception) {
// Handle Exception
});