lib/API/ListsSegmentsApi.php
/**
     * Operation excludeGloballyAsyncWithHttpInfo
     *
     * Exclude Profile From All Email
     *
     * @param  string $email (required)
     *
     * @throws \InvalidArgumentException
     * @return \GuzzleHttp\Promise\PromiseInterface
     */
Operation excludeGloballyAsyncWithHttpInfo
Exclude Profile From All Email

@param  string $email (required)


Operation excludeGloballyAsyncWithHttpInfo Exclude Profile From All Email @param string $email ( required )
public function excludeGloballyAsyncWithHttpInfo($email)
    {
        $returnType = 'array<string,object>';
        $request = $this->excludeGloballyRequest($email);
        return $this->client
            ->sendAsync($request, $this->createHttpClientOption())
            ->then(
                function ($response) use ($returnType) {
                    if ($returnType === '\SplFileObject') {
                        $content = $response->getBody(); 
                    } else {
                        $content = (string) $response->getBody();
                    }
                    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(),
                        (string) $response->getBody()
                    );
                }
            );
    }
public function excludeGloballyAsyncWithHttpInfo ( $ email ) { $ returnType = 'array<string,object>' ; $ request = $ this -> excludeGloballyRequest ( $ email ) ; return $ this -> client -> sendAsync ( $ request , $ this -> createHttpClientOption ( ) ) -> then ( function ( $ response ) use ( $ returnType ) { if ( $ returnType === '\SplFileObject' ) { $ content = $ response -> getBody ( ) ; } else { $ content = ( string ) $ response -> getBody ( ) ; } 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 ( ) , ( string ) $ response -> getBody ( ) ) ; } ) ; }
Operation excludeGloballyAsyncWithHttpInfo
 Exclude Profile From All Email
Operation excludeGloballyAsyncWithHttpInfo Exclude Profile From All Email
//stream goes to serializer