clients/kratos/php/lib/Api/AdminApi.php
/**
     * Operation listIdentitiesAsyncWithHttpInfo
     *
     * List all identities in the system
     *
     *
     * @throws \InvalidArgumentException
     * @return \GuzzleHttp\Promise\PromiseInterface
     */
Operation listIdentitiesAsyncWithHttpInfo
List all identities in the system


Operation listIdentitiesAsyncWithHttpInfo List all identities in the system
public function listIdentitiesAsyncWithHttpInfo()
    {
        $returnType = '\Ory\Kratos\Client\Model\Identity[]';
        $request = $this->listIdentitiesRequest();
        return $this->client
            ->sendAsync($request, $this->createHttpClientOption())
            ->then(
                function ($response) use ($returnType) {
                    $responseBody = $response->getBody();
                    if ($returnType === '\SplFileObject') {
                        $content = $responseBody; 
                    } else {
                        $content = (string) $responseBody;
                    }
                    return [
                        ObjectSerializer::deserialize($content, $returnType, []),
                        $response->getStatusCode(),
                        $response->getHeaders()
                    ];
                },
                function ($exception) {
                    $response = $exception->getResponse();
                    $statusCode = $response->getStatusCode();
                    throw new ApiException(
                        sprintf(
                            '[%d] Error connecting to the API (%s)',
                            $statusCode,
                            $exception->getRequest()->getUri()
                        ),
                        $statusCode,
                        $response->getHeaders(),
                        $response->getBody()
                    );
                }
            );
    }
public function listIdentitiesAsyncWithHttpInfo ( ) { $ returnType = '\Ory\Kratos\Client\Model\Identity[]' ; $ request = $ this -> listIdentitiesRequest ( ) ; return $ this -> client -> sendAsync ( $ request , $ this -> createHttpClientOption ( ) ) -> then ( function ( $ response ) use ( $ returnType ) { $ responseBody = $ response -> getBody ( ) ; if ( $ returnType === '\SplFileObject' ) { $ content = $ responseBody ; } else { $ content = ( string ) $ responseBody ; } return [ ObjectSerializer :: deserialize ( $ content , $ returnType , [ ] ) , $ response -> getStatusCode ( ) , $ response -> getHeaders ( ) ] ; } , function ( $ exception ) { $ response = $ exception -> getResponse ( ) ; $ statusCode = $ response -> getStatusCode ( ) ; throw new ApiException ( sprintf ( '[%d] Error connecting to the API (%s)' , $ statusCode , $ exception -> getRequest ( ) -> getUri ( ) ) , $ statusCode , $ response -> getHeaders ( ) , $ response -> getBody ( ) ) ; } ) ; }
Operation listIdentitiesAsyncWithHttpInfo
 List all identities in the system
Operation listIdentitiesAsyncWithHttpInfo List all identities in the system
//stream goes to serializer